I am trying to get the following functions in my iPhone application:
- With background setting, remains (no background work needed)
- When resuming, the application chooses where it was stopped.
I basically want the same screen in my application to still work, as there are several UINavigationControllers in the UITabBarController.
I have completed all of the following:
- Make sure I compile with 4.1 SDK
- Set UIApplicationExitsOnSuspend to false
- Pen DidEnterBackground and WillEnterForeground in my AppDelegate
- Call BeginBackgroundTask in DidEnterBackground to try to open my application.
I use MonoTouch, but probably it is not. I can take the answers in Obj-C, of ​​course.
I tested my application on a jailbreak phone with Backgrounder, and I see that the “app in the background” icon disappears immediately after pressing the “home” button. I also tried installing UIBackgroundModes in my Info.plist, but to no avail.
Is there anything I don't see?
Or is it something that I would have to implement myself to resume the previous state of my application? Wherever I read conversations, this should just work automatically.
source share