hotdogsoup.nl
hotdogsoup.nl

Reputation: 2329

iOS 8 Crash on relaunch when UIApplicationExitsOnSuspend = Yes

When setting UIApplicationExitsOnSuspend = Yes in the info.list file ("Application does not run in background") the app will terminate when it is suspended.

On iOS7, when suspending an app with that setting by tapping on the home button, then after 1 second tapping the app icon again to relaunch it, it will shortly show the Default screen and launch OK.

On iOS8 however, tapping the icon to re-launch after a suspend will lead to a black screen and crash of the app, even before reaching application:(UIApplication *)application didFinishLaunchingWithOptions:.

Can anyone confirm this, and/or have a solution?

A work-around is to set UIApplicationExitsOnSuspend = No but that is not the app behaviour that I desire.

Upvotes: 4

Views: 467

Answers (1)

Pelle Stenild Coltau
Pelle Stenild Coltau

Reputation: 1298

We have the same issue. We fixed it by putting an exit(0) in the appDelegate in either:

applicationWillResignActive

or

applicationDidEnterBackground

We see no crash log on the device when the app crashes.

Upvotes: 1

Related Questions