So, I implemented what is the suggested fix for the missing UIApplicationExitsOnSuspend within Android build settings which is: -
local function onSystemEvent(event) if event.type == "applicationSuspend" then native.requestExit() end end Runtime:addEventListener("system", onSystemEvent)
This works a treat until my app loads the Camera. Then the app closes down! I guess the app is placed into an applciationSuspend state when the Camera is loaded.
Any other ideas? What I need is for the app to exit when the screen locks, but not to close when it loads the camera from within the app!
Of course on IPAD it works without any issues, mainly because IPAD has the UIApplicationExitsOnSuspend …
Any help would really be appreciated…