Hi, Scirra forum users,
I'm wondering how to make an Android app to work in background. I need to constantly measure accelerometer and tilt (orientation) and play sounds.
Is that possible? If so, how?
Develop games in your browser. Powerful, performant & highly capable.
grigrizljac - This isn't possible according to Ashley here: https://www.scirra.com/forum/how-do-i-run-the-game-in-background-crosswalk_t122089 but I do know that in the Audio Plugin Properties, there is an option to play music in background.
Thanks for the info. Yeah, Audio allows that, but I'd need to run the events (compare acc/orientation, if it's xx, play audio).
grigrizljac - Sadly, HTML5 doesn't have enough permission to run on background while the application is closed.