rekabhq / background_locator

A Flutter plugin for updating location in background.
MIT License
289 stars 336 forks source link

Callback method inconsistent both in Android/IOS #193

Open venkateshironman opened 3 years ago

venkateshironman commented 3 years ago

We have configuerd our App with background_locator 1.2.2 + to record the lat/long every 2 mins (once) and then sending it to the backend inside callback method. But few times its not sending every 2 minutes instead it sends any time between 8 to 15 minutes particularly when the App is in the Background state. The interesting behavior is during this inconsistent interval time between 8 to 15 mins it is recording lat/longs locally in small intervals, every few seconds and then it is sending the data in bulk to the backend after a period of time which is not what it should be doing. Have the Flutter Development team encountered such issue in the past? What is the solution you recommend?

Thanks in advance

mehdok commented 3 years ago

Hi @venkateshironman

Thank you for opening an issue.

Some people had similar problem with latest version of android, so I have released a new version with a fix.

Please use the latest version of the library (1.4.0), the problem should be solved.

venkateshironman commented 3 years ago

@mehdok Thanks a ton for quick and prompt response really appreciate it Is this fix works for IOS as well? Thank you

mehdok commented 3 years ago

I believe iOS don't have this problem at all. Do you have any problem with iOS?

venkateshironman commented 3 years ago

@mehdok yes we have found same issue in iOS

mehdok commented 3 years ago

Interesting, it would be nice if you could provide more info, some code, logs, or any useful data that you could think of;