Note that there are some explanatory texts on larger screens.

plurals
  1. POHTML5 geolocation with GPS fails after phone wake up on Android
    text
    copied!<p>I'm building a website which use HTML5 Geolocation API.</p> <p>In Android's default browser everything works fine, but I have a strange bug which seems to occur only on Android devices.</p> <p>On the first page load the browser ask me if I accept to share my location and the geolocation feature works as expected.</p> <p>But if I let the phone fall asleep mode while the page requesting geolocation is open in the browser, then I wake up the phone and reload that page, the geolocation doesn't work anymore. Even if the GPS icon appears in the taskbar and flash normally ..</p> <p>The error callback gets called with the no service argument, which means the page see the GPS device but cannot read its data.</p> <p>No matter how many times I refresh the page I always get this error.</p> <p>However if I go to Settings and clear the geolocation access (the settings that keeps track of which sites have permissions for geolocation), then kill the browser with the task manager, then reload the browser and try again, it start working again.</p> <p>As for other browsers, I tried Firefox, Dolphin HD and Opera and they all don't work. It ask if I want to share my location, I answer yes and I get the no service error. Again the GPS icon appears and flash in the task bar..</p> <p>At some point it worked in Dolphin HD and Firefox, but I installed updates and since a while it stopped working.</p> <p>I get the same behaviour on a Samsung Galaxy SII (And. 2.3) and a Motorolla Milestone (And. 2.1)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload