Hi
I am using geolocation with a timer function to update my location every few seconds. The problem is that the marker freezes at random intervals. when I touch anywhere on the screen it starts again. It seems like the phone goes into sleep mode however the display is still active.
Please see my js code for timer that I got from your Background Mode Tutorial. (I am not using background mode in this instance).
I have set the geolocation watch property to false as well as true. On false the spinner spins and you cant see the marker. It works better when set to True.
TIMER FUNCTIONS:
var counter = setInterval(timer, 1000);
function timer()
{
geolocation1.execute();
}
function StopInt()
{
clearInterval(counter);
}
function RestartInt()
{
counter=setInterval(timer, 1000);
timer();
}
Thank you