I have deployed my unity game to the newly installed iOS4 on my iPhone 3Gs.
Figured out all issues and everything works great, no problems at all…
except for one little thing…
Well the game runs in the background when you press the home button!!!
There seems no way, that i know of other than using (Application.Quit)…
Not sure if that’s allowed now or not ?
what is the solution to that ? how do you make your game quit ?
It’s nice though, when you get a call or do something else on your iphone, you go back to the game and it picks up from where you left ,
My iPhone is pretty hot by now, i mean “Hot”, and the battery is being hammered, because my game is still running and it won’t quit !
Waiting for a solution, before i have to restart the phone!
Well, multitasking , Multitasking, MUltitasking , should i keep going?
Not sure if this is a feature or a drawdown! at least it ain’t a feature when it comes to games ,
How can you disable multitasking in your game ?
As far as I can tell, there’s no means of explicitly quitting your app programmatically (ie., telling iOS to “turn off” your app once you leave the state.) Compiling to iOS4 just ads that magic in automatically, and without regard to whether or not the app really “wants it.”
That being said, unless you explicitly tell iOS that you’re doing something while not in the foreground, your app isn’t really doing anything anyway. It’s just saved state, waiting to go again once it’s brought to the foreground.
If you must kill an app (such as during development, which I often have to do), double-tap on the home button, press and hold an app showin in the tray, then you can quit the app when the little red minus sign comes up.
Keep in mind that having the unity game take advantage of Fast App Switching (it isn’t really running in the background, it is more like paused in the background) lets iPhone users receive a phone call and then go right back into the game.