Flurry Analytics Best Practise

Hi,

I also have an exit dialog to end the application where I am NOT ending the flurry session till now. I am not sure if it is ok.

Also, I have added flurry analytics calls in the below places. I wanted to confirm if I am making any extra calls.

My android manifest has minsdkversion = 11

bool AppDelegate::applicationDidFinishLaunching() {
  // as mentioned in the documentation of sdkbox
  sdkbox::PluginFlurryAnalytics::init();
  sdkbox::PluginFlurryAnalytics::startSession();
}
// not mentioned in sdkbox documentation. Need to know if this is correct or not
void AppDelegate::applicationDidEnterBackground() {
  Director::getInstance()->stopAnimation();
  sdkbox::PluginFlurryAnalytics::endSession();
}
// not mentioned in sdkbox documentation. Need to know if this is correct or not
void AppDelegate::applicationWillEnterForeground() {
  Director::getInstance()->startAnimation();
  sdkbox::PluginFlurryAnalytics::startSession();
}

Hello @abhinav

I guess I was trying out something with one of my project and checked that the control was not coming inside applicationDidEnterBackground() or applicationWillEnterForeground() in android.

yes, I remember now, I was checking for game pause.
What you can do is, you can create a native code (some sort of JNI Communicator) and check application window focus and then you can end your session and start your session in a similar way.

Best,
Pabitra