Android browser javascript events when minimised -


I am creating webapps for Android smartphones that run with OS Internet browsers. The main interface is for input datas. Data is added to the queue (Android 1.5: Gears, Android 2.x: html5). Every 5 minutes (using setTimeout), the script sees that if an internet connection is active, and if so, then the server sends all queues.

If the phone is plugged on the wall and the webpage is ontop, timeout works, if the browser is reduced or runs above any other application, the timeout does not work. If the phone is in sleep mode it does not work either.

Can only the original app play in the background?

Can only run basic apps in the background?

Of course, I would not expect that the browser is awake to the device for your sleep mode scenario. Apparently, based on your symptoms, they prevent all javascript threads, when the browser is stopped automatically. It is not very shocking, considering the problems of the battery can be the reason for leaving those scripts running.


Comments