Fix no location result from getLocation with "Precise Location" off on iOS
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
To view this pull requests documentation preview, visit the following URL:
docs.page/lyokone/flutterlocation~984
Documentation is deployed and generated using docs.page.
@Lyokone - Would it be possible to merge this? It seems to fix several issues we are facing using the getLocation() method. Thanks.
@Lyokone any hopes on merging this?
hello @Lyokone