"StartSession has been called already. it should only be called once" iPhone error with using flurry analytics.

I added to my application corona “analytics” module. It works ok for the Android platform, but gives me an error, as I wrote in the title, during testing on the iPhone 4s.

I think the root cause for this error that I start the analytics session with flurry.com and never finish it.

Corona analytics module has an “init” function for starting the session with flurry.com , but doesn’t have any function for stopping or canceling the session.

I will appreciate if you could help me to resolve this issue, probably I miss something.

Thanks, Tatiana

[import]uid: 172733 topic_id: 30763 reply_id: 330763[/import]

Hi there, it sounds like you are starting the init module multiple times, or multiple scenes within your app?

[import]uid: 140812 topic_id: 30763 reply_id: 123203[/import]

@mark376, I start the “init” module multiple times. I guess it’s wrong, isn’t it?
So, that is the best practice to init the analytics module? Should I do it in only one time the “main” or several times in each scene?

If I’ll do it once in “main” , how could I use analytics.logEvent( str ) in scenes? [import]uid: 172733 topic_id: 30763 reply_id: 123204[/import]

Hi there, I init in main and then just use the logEvent for the various scenes.

Try that on your side and let me know if it works, the proof would be to log into flurry and check to see if it’s picked up the scene events or just the main event.

Kind Regards,

Mark [import]uid: 140812 topic_id: 30763 reply_id: 123398[/import]

Hi there, it sounds like you are starting the init module multiple times, or multiple scenes within your app?

[import]uid: 140812 topic_id: 30763 reply_id: 123203[/import]

@mark376, I start the “init” module multiple times. I guess it’s wrong, isn’t it?
So, that is the best practice to init the analytics module? Should I do it in only one time the “main” or several times in each scene?

If I’ll do it once in “main” , how could I use analytics.logEvent( str ) in scenes? [import]uid: 172733 topic_id: 30763 reply_id: 123204[/import]

Hi there, I init in main and then just use the logEvent for the various scenes.

Try that on your side and let me know if it works, the proof would be to log into flurry and check to see if it’s picked up the scene events or just the main event.

Kind Regards,

Mark [import]uid: 140812 topic_id: 30763 reply_id: 123398[/import]