Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: foreground service seems to be missing FOREGROUND_SERVICE_LOCATION permission #1474

Open
3 of 8 tasks
CaviarChen opened this issue Mar 29, 2024 · 0 comments
Open
3 of 8 tasks
Labels
good first issue Good for newcomers who would like to start contributing to the project. P2 Important issues not at the top of the work list. platform: android Issue is related to the Android platform. type: documentation Update to the documentation

Comments

@CaviarChen
Copy link

Please check the following before submitting a new issue.

Please select affected platform(s)

  • 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

@mvanbeusekom mvanbeusekom added good first issue Good for newcomers who would like to start contributing to the project. type: documentation Update to the documentation platform: android Issue is related to the Android platform. P2 Important issues not at the top of the work list. labels Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers who would like to start contributing to the project. P2 Important issues not at the top of the work list. platform: android Issue is related to the Android platform. type: documentation Update to the documentation
Projects
None yet
Development

No branches or pull requests

2 participants