rekabhq / background_locator

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

Position callback called twice on iOS #139

Open umbertogrimaldi opened 4 years ago

umbertogrimaldi commented 4 years ago

Hi, I'm having issues since on iOS position callback is called twice while on android is working perfectly! Is there any way to solve this?

Thanks in advance!

mehdok commented 4 years ago

Hi @umbertogrimaldi Thank you for opening an issue.

Please provide more information, codes, logs and anything you think that would help finding the issue;

umbertogrimaldi commented 4 years ago

Taken from your setup docs

THIS IS CALLED TWICE static void callback(LocationDto locationDto) async { final SendPort send = IsolateNameServer.lookupPortByName(_isolateName); send?.send(locationDto); }