Hi, I read online :
By default, the Corona SDK does not allow applications to be put into the background. Rather, the standard behaviour is to quit the application entirely. When a user resumes a suspended corona app, the app will completely restart unless we change the default settings.
On ios you can resolve this by putting this in your build.settings file:
UIApplicationExitsOnSuspend = false
How is this same thing done for Android? I don’t want my Android app to restart when resuming
This is incorrect. There is a difference between apps that suspend and apps that do work in the background.
Corona apps suspend just fine. Apple will reject apps that exit when being sent to the background (i.e. suspending). On Android, apps that exit are about 50/50 vs. those that stay in memory so there isn’t an expectation there. On iOS you have to have the:
UIApplicationExitsOnSuspend = false
in build.settings. On Android apps will not exit when suspended as long as you don’t call native.requestExit(). It will stay in memory, suspend and wait to resume.
Now Corona does not support *running* in the background. There has been some success with apps that don’t require updates to the UI, but we don’t guarantee that functionality as it’s unsupported.
This is incorrect. There is a difference between apps that suspend and apps that do work in the background.
Corona apps suspend just fine. Apple will reject apps that exit when being sent to the background (i.e. suspending). On Android, apps that exit are about 50/50 vs. those that stay in memory so there isn’t an expectation there. On iOS you have to have the:
UIApplicationExitsOnSuspend = false
in build.settings. On Android apps will not exit when suspended as long as you don’t call native.requestExit(). It will stay in memory, suspend and wait to resume.
Now Corona does not support *running* in the background. There has been some success with apps that don’t require updates to the UI, but we don’t guarantee that functionality as it’s unsupported.