IOS 8 Reboot Fails When UIApplicationExitsOnSuspend = Yes

When installed UIApplicationExitsOnSuspend = Yesin the info.list file ("The application does not work in the background"), the application will stop when it is suspended.

In iOS7, when pausing an application with this option, by pressing the "home" button, then after 1 second, click the application icon again to restart it, in the near future it will display the "Default" screen and OK will start.

However, on iOS8, tapping the icon to restart after pausing will result in a black screen and the app crashing even before it is reached application:(UIApplication *)application didFinishLaunchingWithOptions:.

Can someone confirm this and / or have a solution?

The workaround is to install UIApplicationExitsOnSuspend = No, but this is not the application behavior that I want.

+4
source share
1 answer

We have the same problem. We fixed this by setting exit(0)in appDelegate:

applicationWillResignActive

or

applicationDidEnterBackground

We do not see a crash log on the device when the application crashes.

0
source