flutter-geolocator icon indicating copy to clipboard operation
flutter-geolocator copied to clipboard

[Bug]: Frequent Location Updates Despite 10-Meter Distance Filter on Android 9

Open Sikorrr opened this issue 1 year ago • 1 comments

Please check the following before submitting a new issue.

Please select affected platform(s)

  • [X] Android
  • [ ] iOS
  • [ ] Linux
  • [ ] macOS
  • [ ] Web
  • [ ] Windows

Steps to reproduce

  1. Clone the example project.
  2. Set the distanceFilter to 10 meters.
  3. Run the application with Android Version 9.
  4. 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

IMG_6992 2 IMG_6993

Version

11.0.0

Flutter Doctor output

Doctor output
[Paste your output here]

Sikorrr avatar Apr 17 '24 10:04 Sikorrr

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

TimHoogstrate avatar Apr 23 '24 12:04 TimHoogstrate

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.

github-actions[bot] avatar May 07 '24 13:05 github-actions[bot]