flutter-geolocator icon indicating copy to clipboard operation
flutter-geolocator copied to clipboard

getServiceStatusStream only listen when I enter the app on IOS

Open Ellynnn opened this issue 10 months ago • 0 comments

Please check the following before submitting a new issue.

Please select for which platform(s) you need help

  • [ ] Android
  • [X] iOS
  • [ ] Linux
  • [ ] macOS
  • [ ] Web
  • [ ] Windows

Your question

I want to do something when user turn off the location service. On Android it works perfectly when the app is in background. User turn off the location service, it will still listen to it. However for IOS, it only listen and execute my code when i open the app. Is this because IOS is unable to run in the background hence the stream only works when the app is in foreground?

Version

11.0.0

Ellynnn avatar Apr 24 '24 04:04 Ellynnn