rekabhq / background_locator

A Flutter plugin for updating location in background.
MIT License
288 stars 329 forks source link

Background locator still update when device is not in motion #204

Closed kelvinforteta closed 3 years ago

kelvinforteta commented 3 years ago

The plugin still posts location information even when the device is not in motion, the device is plugged into my computer, but I still receive the speed that is greater than 0, even the longitude and latitude changes on every update.

What should I do to make it stop updating when not in motion?

mehdok commented 3 years ago

Hi @KelvinForteta Thank you for opening an issue.

Use distanceFilter, and set it to a number like 20 meters, so you won't get any update while the device is still;

kelvinforteta commented 3 years ago

Ok thanks, I will give it a try.