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
I am trying to get current location it was working fine about 1 days ago but yesterday i have updated to latest version after that it does't work as expected,it throws timeout exception even if i added 10 sec time limit it still throws the error,i have lot plugins so i have tried to add a prefix then tried with that prefix but it throws same error
Flutter doctor not giving any error
Thank you for reporting this issue. I have made a small mistake when setting up the timeout on the getCurrentPosition method.
I have released an update of the geolocator_platform_interface package (v1.0.6+1) which includes a fix. To fix this you might need to run flutter pub get to update your packages. After that this issue should be solved and the timeout settings should be respected:
If the timeLimit parameter is not supplied, no timeout will occur and the getCurrentPosition method will wait until it receives the first location;
If a timeLimit is supplied the getCurrentPosition will throw a TimeoutException when the time limit is reached before a location is returned.
🐛 Bug Report
I am trying to get current location it was working fine about 1 days ago but yesterday i have updated to latest version after that it does't work as expected,it throws timeout exception even if i added 10 sec time limit it still throws the error,i have lot plugins so i have tried to add a prefix then tried with that prefix but it throws same error
Flutter doctor not giving any error
Expected behavior
Get current location with latt and long value
Reproduction steps
Configuration
Version: geolocator: ^6.1.2
Flutter version 1.22.2
Platform:
in both Platforms
The text was updated successfully, but these errors were encountered: