I do not want my app to switch to the "task bar" when the Home button is pressed. That's why I would like it to be closed upon Home press. I added this entry to the info.plist file but this does not change the behaviour:
application does not run in background
(and I checked the box...)
I rebuilt the whole app both in debug and release mode but no way. I heard of another key which should be added to the info.plist but I cannot add it through Xcode:
UIApplicationExitsOnSuspend
What is the right way to do that ?
Regards,
Franz
To quit the app, open the App Switcher, swipe right to find the app, then swipe up on the app. To reopen the app, go to the Home Screen (or App Library), then tap the app.
Force reset: Quickly tap the volume up button, then the volume down button, then press and hold the side button.
Step 1: Double click Home key to open the multitasking interface in which you will see your recently used apps. Step 2: Swipe left or right to find the app you'd like to close. Step 3: Swipe up to close the app or swipe up with two or three fingers to close multiple apps.
iPhone X and laterFrom the Home Screen, swipe up from the bottom of the screen and pause in the middle of the screen. Swipe right or left to find the app that you want to close. Swipe up on the app's preview to close the app.
On iOS 4, multitasking is enabled in Xcode projects by default. This prevents the applicationWillTerminate
method from being called. If you do not want to support multitasking, place UIApplicationExitsOnSuspend
in your MyAppName-Info.plist file and check the checkbox. If you do want to support it, place any code in the applicationDidEnterBackground
delegate method that you want to execute before the application enters an inactive state.
What you're doing will indeed stop the application from running in the background, but you can't prevent it from going to the multitasking bar still. Sorry.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With