Android browser javascript events when minimised
Posted
by Sirber
on Stack Overflow
See other posts from Stack Overflow
or by Sirber
Published on 2010-05-17T18:01:49Z
Indexed on
2010/05/17
19:00 UTC
Read the original article
Hit count: 166
android
|javascript-events
I'm building a webapp for Android smartphones that runs with the OS internet browser. the main interface is to input datas. the data is added to a queue (android 1.5: gears, android 2.x: html5). Each 5 minutes (using setTimeout), the script looks if an internet connection is active, and if so, sends all the queue to the server.
If the phone is plugged on the wall and the webpage is ontop, the timeout works. if the browser is minimized or another application runs on top of it, the timeout doesn't work. if the phone is in sleep mode it doesn't work either.
can only native apps runs in background?
© Stack Overflow or respective owner