How do I implement "Screen Always On" on Android?
Hi!
Is there a way to prevent the screen saver from kicking in for Android applications using microScript 2.0?
I couldn't find anything relevant in the documentations.
Thanks :)
Hi!
Is there a way to prevent the screen saver from kicking in for Android applications using microScript 2.0?
I couldn't find anything relevant in the documentations.
Thanks :)
Hi! Seems this can be done with a bit of JavaScript, see https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API
I haven't tested it yet. See documentation / Advanced Topics / Advanced microScript to check how to add some JavaScript to your microScript project.
Thank you, I'll give this a try!
Also, I seem to have missed the whole Advanced topics section on custom builds for Android using Cordova.
I was scratching my head trying to make everything work just using microScript 2.0 along with the built-in builder from microStudio :)