Reputation: 2210
I'm developing a webapp that receive notifications from a server. Currently, The target device is only an Android 4 device [a Samsung Galaxy Nexus]). As normal, when the user doesn't touch the screen for a while the screen goes off, lock screen.
I have search in the developers.adnroid.con page, but all i have seen is handling scale, and screen dimensions.
I wouldn't like to make a native app with a webview, because the great thing about a webapp is that it doesn't require installation, and you can just share a link ....
Is there a way to prevent android from sleeping from a webapp without using a native app with webview?
Upvotes: 2
Views: 793
Reputation: 304
Looking for a proper solution myself. But playing a video seems to do the trick. So looping a tiny video hidden behind main content should work. You could probably do it using a dataURI for the src for a copy and paste solution.
Upvotes: 1
Reputation: 759
I think that what you are looking depends on the android browser.
Or u use a client-side Android application with a webbview or let device save battery with the lock screen :(
Upvotes: 0