Hallo experts,
I\'ve tested what\'s happing with my app when the iPhone is switched off while the app is active. For this purpose I logged the callback
I've made some further tests:
I've saved the called lifecycle methods in a database and turned off the iPhone while may application was running. Actually only applicationWillResignActive
is called.
But after the shut down my application resides in the state "not running", because launching it initiates calls of application:didFinsihLaunchingWithOptions:
and applicationDidBecomeActive
. So the application data is lost if I don't save it in applicationWillResignActive
.
If the battery is empty while an application is running applicationDidEnterBackground
and applicationWillTerminate
are called (no call of applicationWillResignActive
!).