Skip to content Skip to sidebar Skip to footer

Android Browser Javascript Events When Minimised

I'm building a webapp for Android smartphones that runs with the OS internet browser. the main interface is to input data. the data is added to a queue (android 1.5: gears, android

Solution 1:

can only native apps runs in background?

Certainly, I would not expect the browser to be waking up the device, for your sleep mode scenario. Apparently, based on your symptoms, they pause all Javascript threads when the browser itself is paused. That is not terribly shocking, given the battery problems that leaving those scripts running might cause.

Solution 2:

You could also base it on system time, rather than just setTimeout. That way it would at least run when they returned focus to the browser.

Post a Comment for "Android Browser Javascript Events When Minimised"