Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(geolocation): return cached location if newer than maximumAge #639

Merged
merged 3 commits into from
Sep 30, 2021

Conversation

jcesarmobile
Copy link
Member

At the moment we are always getting a new location instead of checking if the latest cached location is newer than maximumAge.
This PR reads maximumAge and check the cached locations (for all providers) and returns a cached value if newer than maximumAge, otherwise it gets current location as usual.

closes #609

@jcesarmobile jcesarmobile merged commit 7b08eea into main Sep 30, 2021
@jcesarmobile jcesarmobile deleted the max-age branch September 30, 2021 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Geolocation not returning cached value on native app
2 participants