My stopwatch script works flawlessly in the background on Android (counts the time), but iOS 4.3.2 seems to pause the script. On iOS, the stopwatch stops when the app is sent to the background.
I need a runnning stopwatch (time is displayed every time in the view) and some alarm messages at certain points in time.
The stopwatch code is as follows:
this.timer = window.setInterval(function(){ instance.runtime += Stopwatch.INCREMENT; instance.doDisplay(); }, Stopwatch.INCREMENT);
I know my own solutions, but I would like to use a JavaScript solution for cross-platform compatibility.
source share