Almoullim / background_location

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

Fix stuck on await start/stop location #76

Closed rubenvde closed 3 years ago

rubenvde commented 3 years ago

I noticed that even the example project wasn't working properly on iOS. I figured out that it got stuck on the await BackgroundLocation.startLocationService(distanceFilter: 20); because it never returned something.

I fixed it here by just returning a boolean inside the native iOS code. It's probably not the best solution but it works for me on my two iOS devices.

I like to know what you think of this fix and if you can reproduce the same issue.