flutter-geolocator
flutter-geolocator copied to clipboard
[Bug]: foreground service seems to be missing `FOREGROUND_SERVICE_LOCATION` permission
Please check the following before submitting a new issue.
- [X] I have searched the existing issues.
- [X] I have carefully read the documentation and verified I have added the required platform specific configuration.
Please select affected platform(s)
- [X] Android
- [ ] iOS
- [ ] Linux
- [ ] macOS
- [ ] Web
- [ ] Windows
Steps to reproduce
It seems the locationStream is not stable (i.e. having random pauses) with foreground service. It seems it is due to missing the FOREGROUND_SERVICE_LOCATION permission. I don't know android very well and don't have concrete proof. But it seems to be required per doc and does seem to fix the issue.
If this is indeed require, then maybe we should mention it in the doc/installation guide?
(cc: @kuailezhiyuan)
Expected results
Having <uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION" /> in AndroidManifest.xml.
Actual results
n/a
Code sample
n/a
Screenshots or video
No response
Version
4.5.4
Flutter Doctor output
n/a