Almoullim / background_location

Flutter background location plugin for Android and iOS
https://pub.dev/packages/background_location
Other
224 stars 236 forks source link

getting more gps records is not working #70

Closed smobiledev closed 3 years ago

smobiledev commented 3 years ago

@Almoullim After merging the PR #65 (using version: 3.0.1 in my solution), even though we are requesting the for every 1 second , still it is giving GPS records after 5 to 10 second intervals.

I have tested the example also, there also we are not getting records based on setting interval.

stevehayles commented 3 years ago

The fused location provider is optimised for better battery usage, the time interval is not a fixed parameter that the OS will always honour. I have seen very different behaviour dependent on the firmware, the GPS chip and current state of the application along with others running on the device. If you are outdoors and moving, it will very likely start updating at the required interval. Quite often you will see the OS provider 5 - 10 second interval updates when there is a small displacement in position