Yukams / background_locator_fixed

A Flutter plugin for updating location in background.
MIT License
50 stars 94 forks source link

[IOS] Callback called only once after start background locator #91

Open Qionar opened 1 year ago

Qionar commented 1 year ago

Hi, I used this library in my flutter project and it works correctly on Android, but on IOS callback called only once. All permissions was added to Info.plist and Location Updates marked in Signing & Capabilities. On run application in debug mode also I grant localization permission on emulator for app. When I start BackgroundLocator also run this methods to check service and got true for both of them

BackgroundLocator.isRegisterLocationUpdate();
BackgroundLocator.isServiceRunning();

but callback has called only once. Also I trying it with example project placed in this repo, but got the same problem, any solution? Thanks.

Qionar commented 1 year ago

Also I have a question about annotation @pragma('vm:entry-point'), should I use it with every method, which will used in background process?

mohamed493 commented 1 year ago

on iOS simulator from features -> location ,I changed from custom location to city run , and it solved the problem , I hope this help

Aimee135 commented 1 year ago

Hello, have you resolved the issue

atvbasha commented 11 months ago

but what about the real device that is showing only one time !!!