- Home /
ipad application multi tasking, how to prevent this and really quit the app
Hi,
Very odd or me missing the obvious...
When I build an app on ipad, if I close the app and restart it like you do for any other app within the ipad, it actually wasn't closed at all and runs in the background.
What do I need to do to close it properly? I do not want it to run as a background task? What settings can prevent that?
Bye,
Jean
Answer by Pablo 1.du · Feb 24, 2011 at 06:07 AM
The Editor's Player Settings -> Settings for iOS -> Other Settings has a Configuration area with a checkbox for "Exit on Suspend". Check it and build, then the home button will cause your application to exit. I'm running Unity Version 3.2.0f4.
Yes, thanks for putting this up here :) it's been added in 3.2
Answer by Jean-Fabre · Jan 01, 2011 at 12:00 PM
Hi,
Found some hints actually from a unity user willing the same thing.
will mark as answered when actually tested and verified, but should be ok from what's been written on that thread.
If you however want multi task enabled and handle the pause yourself:
http://forum.unity3d.com/threads/62416-iOS-4-multi-task-support-in-Unity-3
Jean
works also be aware that if the app icon still shows in the bottom list it's simply because it's the list of last opened apps, not necessarily in our case now that it actually runs.
Answer by Jaywalker · Dec 30, 2010 at 09:05 AM
Hey!
did you miss the multitasking? just double tap the ipad button and then the "active" apps will appear.
hold you finger on you app in the bar until it starts shaking and then close it.
if you restart it now it should start from the beginning!
Cheers!
I actually don't want the app to run in the background, that's my problem. let me edit the question with the right wording
Answer by Eric5h5 · Feb 24, 2011 at 09:51 AM
Apps do not run in the background anyway (aside from specific services, which aren't usable directly in Unity). You really don't need to manage this; the OS does it for you. The "multitasking" in iOS is for the most part just task switching.
I was co$$anonymous$$g more from a user experience perspective where the client did not wanted the app to keep its state, but rather quit when the user press quit, nothing to do with memory or battery life.
Your answer
![](https://koobas.hobune.stream/wayback/20220613093251im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Making an ipad app without unity 1 Answer
How to check if the application is running? 1 Answer
Unity Ipad app will not run on device. 1 Answer
iOS application in the settings panel 3 Answers
iPad and Unity Remote 1 Answer