Closed heikkilevanto closed 6 months ago
Works now. Or was a browser permission thing
My android firefox keeps disabling location access for my site.
Looks like it happens if the code asks for location too often. Disabling rechecking the location on window.onFocus fixes the permission problem, but the location will not update if I walk from a bar to another.
The proper solution would be to keep a time stamp from when I got the location last, and get a new one only if more than a minute has passed.
But it turns out that I was getting the location twice, first on document.onload(), and immediately after on window.onFocus. Removing the document.onload seems to be enough
Don't see any Geo coordinates today