In my info.plist file I have Application Does Not Run In Background = YES. This is an enterprise app and I am trying to log when a user exits (hits the home button). But in AppDelegate, I was logging to the console to see what method would be called and none of them were (applicationWillResignActive, applicationDidEnterBackground, applicationWillTerminate). Is there a way to determine when a user exits with the plist setting I have>?
Thanks
Here's the willTerminate method, it's right out of the box:
- (void)applicationWillTerminate:(UIApplication *)application
{
NSLog(@"goodbye");
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
I've changed the plist settings and can now log from applicationDidEnterBackground.