Corona apps restart after app switching on ipad

I have noticed that when running any of my corona apps on ipad, if I use four-finger swipe to switch to another app, then switch back, the corona app has to restart. I can also see this effect on iphone if I press the home button and then load the game again.

Non-corona games appear to keep the state of the game and return to the place you were in the game (although of course they can be killed if the iphone/ipad runs out of memory.)

So my question is why does this happen, and is there any way to correct it? On ipad, It makes the app seem a bit unprofessional; on iphone, it’s less of an issue. Imagine you are doing a crossword, and switch over to check your email, then switch back and your crossword is gone…

[import]uid: 94304 topic_id: 20873 reply_id: 320873[/import]

In your build.settings file, you can add the line:

UIApplicationExitsOnSuspend = false

And it won’t do that.
See here for more details: http://developer.anscamobile.com/content/configuring-projects [import]uid: 120 topic_id: 20873 reply_id: 82249[/import]

@bryan.vaccaro is correct :slight_smile: [import]uid: 84637 topic_id: 20873 reply_id: 82290[/import]

Thanks to both of you! I had noticed the effect on other folks’ apps too – I wonder if they realize… [import]uid: 94304 topic_id: 20873 reply_id: 82299[/import]

@bryan.vaccaro

Thanks bryan vaccaro
[import]uid: 122777 topic_id: 20873 reply_id: 83752[/import]