Hello there,
My teams are having this problem when integrating Medialets and was wondering if there's a solution on this forum. I am listing the details below.
Issue: Using MMTrackingMgr causes applications to crash if relaunched quickly enough
Environment: We are using the below code for all application screens that need to be tracked.
[[MMTrackingMgr sharedInstance]trackEvent:kFoobarDeatilsView];
Use-Case: User quits an application and then relaunches it immediately (within 1-2secs)
Actual Result: Application launches and then quits
We have observed that when we quit the application, the process continues to run in the background (verified via XCode) as if doing something and takes around 3-5 seconds to finish the operations and then quit. Now, if user tries to relaunch the application before it finishes its processing, OS will throw an error (expectedly, as the first instance hasn't quit yet) and fail the relaunch.
We have also tried removing this particular piece of code which resolves the issues and application quit is instantaneous hence, no problems during relaunch.
Here's a console snippet on this issue
14/04/09 6:11:28 PM [0x0-0x1bb1bb].com.apple.iphonesimulator[9509] 2009-04-14 18:11:28.837 SpringBoard[10391:10b] com.atimi.Foobar failed to resume in time
14/04/09 6:11:28 PM com.apple.launchd[74] (UIKitApplication:com.atimi.Foobar[0xa0f6][10392]) Exited: Killed
14/04/09 6:11:28 PM [0x0-0x1bb1bb].com.apple.iphonesimulator[9509] 2009-04-14 18:11:28.847 SpringBoard[10391:10b] Application <SBApplication: 0x124c200> com.atimi.Foobar activate: animated wasResumed deactivate: killed exited abnormally with signal 9: Killed
14/04/09 6:11:29 PM [0x0-0x1bb1bb].com.apple.iphonesimulator[9509] CoreAnimation: timed out fence 2
Look forward to some solution to this problem.
Thanks,
Rahul Mirakhur.