I am developing an Ubuntu Phone html 5 application and I want to prevent the screen from dimming and locking the phone if there are no user interaction in the screen. (The application is showing an animation but the screen goes idle and locks it).
I have tried quite a few ways to prevent this as suggested by stackoverflow. Among them: going html5 fullscreen, playing "empty" audio file and so on. But nothing seems to work and I haven’t found anything in the API documentation regarding this.
Has anybody successfully managed to do this or know how to do it?