rekabhq / background_locator

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

Example Code is not working properly in IOS simulator #168

Closed Shub-29 closed 3 years ago

Shub-29 commented 3 years ago

The plugin is working good in android devices but when I tried to run in ios simulator, I am just getting the location only for one time. After that it is not working.

mehdok commented 3 years ago

Hi @Shub-29

Thank you for opening an issue;

Shub-29 commented 3 years ago

Yes I gave "always" permission and I am running it on simulator.

mehdok commented 3 years ago

Ok, simulator give you just one location, if you want to get new location change the location of simulator; referent to this answer if you have any problem doing it;

Shub-29 commented 3 years ago

The problem is, it is giving location just for once. After that it is not capturing the location. If it would have given the same location every time , I had no problem. In android devices it is good.

mehdok commented 3 years ago

iOS does not work that way, please refer to my previous answer. iOS give you new location whenever new location is available, it doesn't return same location as android.

Shub-29 commented 3 years ago

Got it. I hope it will work in background also. I will check it and close the issue. Thanks.