Skip to content

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.
@docs-page
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.

@bardram
Copy link

bardram commented Feb 27, 2025

@Lyokone - Would it be possible to merge this? It seems to fix several issues we are facing using the getLocation() method. Thanks.

@ebonke
Copy link

ebonke commented May 5, 2025

@Lyokone any hopes on merging this?

@vietstone-ng
Copy link

hello @Lyokone

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

4 participants