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 no location result from getLocation with "Precise Location" off on iOS #984

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DennisNoens
Copy link

When "precise location" is turned off on iOS, calling getLocation caused the app to wait indefinitely for a location response.

The root cause is that the guard condition in the code ignores the first two retrieved locations. However, with "precise location" turned off, only one location result seems to be obtained. This means the code never gets past the guard, resulting in no location being returned.

This fix bypasses the guard when "precise location" is off.

Fixes: #892, #815, #748

…hat gets returned when 'precise location' has been turned off to be ignored.
Copy link

docs-page bot commented Aug 15, 2024

To view this pull requests documentation preview, visit the following URL:

docs.page/lyokone/flutterlocation~984

Documentation is deployed and generated using docs.page.

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.

Location not being retrieved when precise location is off
1 participant