navigator.app.exitApp() does not work on IOS, only Android. In fact Apple does not encourage exiting an app programmatically, here is a quote from their interface guidelines
"Never quit an iOS app programmatically because people tend to interpret this as a crash. However, if external circumstances prevent your app from functioning as intended, you need to tell your users about the situation and explain what they can do about it. Depending on how severe the app malfunction is, you have two choices.
Display an attractive screen that describes the problem and suggests a correction. A screen provides feedback that reassures users that there’s nothing wrong with your app. It puts users in control, letting them decide whether they want to take corrective action and continue using your app or press the Home button and open a different app
If only some of your app's features are unavailable, display either a screen or an alert when people use the feature. Display the alert only when people try to access the feature that isn’t functioning."
Still they offer an option to opt out of Background Execution
"If you do not want your app to run in the background at all, you can explicitly opt out of background by adding the
UIApplicationExitsOnSuspend key (with the value
YES) to your app’s
file would be exposed for the upcoming 1.6 version at the end of the month and you would be able to specify the app behavior on pressing the Home button of the iOS device.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Missed our first webinar, watch it here.
Share feedback and vote for features on our Feedback Portal.