Baseflow / Baseflow/flutter-geolocator
getServiceStatusStream only listen when I enter the app on IOS
- Dominant language
- Dart
- Stars
- 1.3k
- Forks
- 803
- Avg merge
- 8h 16m
- Merged PRs (30d)
- 1
Description
### Please check the following before submitting a new issue.
- [X] I have searched the [existing issues](https://github.com/baseflow/flutter-geolocator/issues).
- [X] I have carefully [read the documentation](https://github.com/baseflow/flutter-geolocator/blob/main/geolocator/README.md).
### 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
Contributor guide
Research direction
Start by reproducing the reported getServiceStatusStream behavior on iOS with geolocator 11.0.0, comparing foreground and background execution with the Android behavior described. Check the iOS platform implementation and documentation for background limitations. Done means establishing whether this is an iOS limitation or a plugin bug, then documenting or fixing the behavior and verifying it in both app states.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter, ios
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100