flutter-geolocator
flutter-geolocator copied to clipboard
getServiceStatusStream only listen when I enter the app on IOS
Please check the following before submitting a new issue.
- [X] I have searched the existing issues.
- [X] I have carefully read the documentation.
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