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

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.

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!

Hi,

Found some hints actually from a unity user willing the same thing.

http://www.iphonedevsdk.com/forum/iphone-sdk-development/60989-disable-multi-tasking-ios4-application.html

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

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.