flutter-geolocator
flutter-geolocator copied to clipboard
[Bug]: Frequent Location Updates Despite 10-Meter Distance Filter on Android 9
Please check the following before submitting a new issue.
- [X] I have searched the existing issues.
- [X] I have carefully read the documentation and verified I have added the required platform specific configuration.
Please select affected platform(s)
- [X] Android
- [ ] iOS
- [ ] Linux
- [ ] macOS
- [ ] Web
- [ ] Windows
Steps to reproduce
- Clone the example project.
- Set the distanceFilter to 10 meters.
- Run the application with Android Version 9.
- Observe the frequency of location updates when not moving the device at all.
Expected results
When setting the distanceFilter to 10 meters, I expect the location updates to occur only when the device has moved at least 10 meters from the last reported location.
Actual results
The location updates are being triggered much more frequently than expected, even when the device is not moved at all.
Code sample
Code sample
[Paste your code here]
Screenshots or video
Screenshots or video demonstration
Version
11.0.0
Flutter Doctor output
Doctor output
[Paste your output here]
Dear @Sikorrr,
Although I don't know the other settings I still think that the assumption is not always correct. It could be depending on the accuracy of the location and the method of determination. e.g. Is your device uses gps to fetch locations inside a building. It could be hard to determine an accurate location. Therefore, it might trigger your location updates more frequently. To investigate the issue a more detailed description of your issue could be helpful. E.g. what are the other settings. How are you testing your location (inside or outside).
Kind regards,
Tim
Without additional information, we are unfortunately not able to resolve this issue. Therefore, we reluctantly closed this issue for now. If you run into this issue later, feel free to file a new issue with a reference to this issue. Add a description of detailed steps to reproduce, expected and current behaviour, logs and the output of 'flutter doctor -v'. Thanks for your contribution.