[Resolve] Integrating Flurry (iOS, Android, Nook & Kindle) & a question about UDID issue

Resolved: The code worked. It was a typo in one of the APIKey that caused the data not to show up. About UDID issue, I’m not 100% sure, though.


I added Flurry to my game and I have a few questions.

  1. I added the following – and I thought this should be enough to get the activity reported. However, I am not seeing any data on Flurry site, even though the game was launched (on Nook) with this code yesterday. What am I doing wrong?
-- build.settings  
androidPermissions =  
{  
 "android.permission.INTERNET"  
},  
-- main.lua  
local analytics = require "analytics"  
-- with the actual API Key I generated on Flurry site  
-- Note: I created API Key for iPhone, iPad, Android (for GooglePlay),   
-- Android (for Nook) and Android (for Kindle)  
if (\_G.isApple == true) then  
 if system.getInfo( "model" ) == "iPad" then  
 analytics.init( "APIKey for iPad" )  
 else  
 analytics.init( "APIKey for iPhone" )  
 end  
elseif (\_G.isNook == true) then  
 analytics.init( "APIKey for Nook" )  
elseif (\_G.isKindle == true) then  
 analytics.init( "APIKey for Kindle" )  
else  
 analytics.init( "APIKey for GooglePlay" )  
end  
analytics.logEvent("Game Launched")  
  1. I believe UDID issue has been sorted with the latest public release (840), and there should be no issue including Flurry. That said, I’d appreciate some sort of confirmation regarding this. I searched Corona Labs website (as well as old Ansca site), but I couldn’t find definitive answer.

I’d so appreciate any and all help.

Naomi

[import]uid: 67217 topic_id: 27940 reply_id: 327940[/import]

I also set launchPad = true in config.lua, but it doesn’t appear on my Corona Labs Dashboard. Could it be related to Flurry data not appearing as well? I wonder if I should just do away with Flurry and launchPad all together…

Naomi [import]uid: 67217 topic_id: 27940 reply_id: 113118[/import]

Hi Naomi,

Flurry doesn’t update in real-time and in my experience usually trails by about a day.

I recently tested out Flurry using a sample app I was messing around with and I can see the events on the Flurry dashboard.

That being said, I did only test on iOS, so it may be an Android issue.

Ali [import]uid: 10499 topic_id: 27940 reply_id: 113161[/import]

Thank you, Ali @ahamidi, I appreciate you letting me know. Last night, I noticed that I had both usesPermissions and androidPermissions in build.settings, and I also remembered a thread about it: http://developer.anscamobile.com/forum/2012/02/03/android-permissions-without-features#comment-84741

So I combined what I had. I still don’t see the data this morning, but it’s been only about 12 hours since I played the game with new build.settings. I hope it will show up by tonight…

Anyhow, here’s the permissions I have now:

android =  
{  
 usesPermissions =  
 {  
 "com.android.vending.BILLING",  
 "android.permission.INTERNET",  
 },  
},  

Naomi [import]uid: 67217 topic_id: 27940 reply_id: 113208[/import]

Hello @Naomi!

I hope you`re well! .)

So, do you mind telling me exactly how to integrate the Flurry Analytics into an app that am working on?

Ive decided to integrate Flurry. But as Ive never done that, if you could “explain” here I would appreciate a lot.
As always,
best regards and thanks!

Rodrigo.
[import]uid: 89165 topic_id: 27940 reply_id: 113766[/import]

Hey, Rodrigo, integrating Flurry is actually insanely easy.

  1. Set up an account with Flurry.
  2. Check out the Flurry sample code that comes with Corona SDK.
  3. Make sure you copy the API Key that you’ve created on Flurry site without typo.

Mine is working fine now. The real culprit behind the data not appearing for me was, YIKES, a typo with one of the API Keys I generated, and I was using this particular key (while all the other ones had no typo.) Somehow, additional character string got added when I was copying & pasting. Dunno how it happened, but it did.

If, somehow, your implementation doesn’t seem to work, try compiling the Flurry sample code with your API Key from Flurry site, and see if it works.

Naomi
[import]uid: 67217 topic_id: 27940 reply_id: 113771[/import]

@Naomi,

You`re awesome girl!

I really appreciate your “guide-through” about integrating Flurry above.

I`ll follow your steps and report here after that.
Thank you for your time. .)

Rodrigo. [import]uid: 89165 topic_id: 27940 reply_id: 113773[/import]

I’m glad you got it working :slight_smile:

Ali [import]uid: 10499 topic_id: 27940 reply_id: 113787[/import]

Rodrigo @RSCdev, no problem at all. I’m sure you’ll get it done in no time.

Ali @ahamidi, thank you. It occurred to me to compile the sample code with my API Key after I read your comment. That really helped.

Naomi

[import]uid: 67217 topic_id: 27940 reply_id: 113802[/import]