You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 8, 2023. It is now read-only.
When you call getCurrentLocation from a cold start, usually the location is very old (several minutes). This in turn will cause getCurrentLocation to fail every time if you specify maximumAge to something like 10 seconds.
What I propose is to change the behaviour of getCurrentLocation like this:
Attempt to retrieve the location as it is today. Check if the timestamp of location <= maximumAge. If the check fails, retry location fetching until timeout or timestamp is ok.
The text was updated successfully, but these errors were encountered:
This sounds like a very nice improvement. I've labeled it with 'help wanted' and 'good first issue' as someone from the community could open a pull request before we get to it.
When you call
getCurrentLocation
from a cold start, usually the location is very old (several minutes). This in turn will causegetCurrentLocation
to fail every time if you specifymaximumAge
to something like 10 seconds.What I propose is to change the behaviour of
getCurrentLocation
like this:Attempt to retrieve the location as it is today. Check if the timestamp of location <= maximumAge. If the check fails, retry location fetching until timeout or timestamp is ok.
The text was updated successfully, but these errors were encountered: