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

[flutter_foreground_service 0.4.1] Unsupported on Android 14 (targetVersion: 34) #996

Open
shlomi-ts opened this issue Jul 10, 2024 · 2 comments
Labels
bugfix a bug fix

Comments

@shlomi-ts
Copy link

shlomi-ts commented Jul 10, 2024

[flutter_foreground_service 0.4.1]

Device / Emulator and OS

  • OS: Android 14

Describe the bug

Since Android 14 Google has new requirements as to how launch a ForegroundService, this package is not compatible with these requirments.

App is crashed on foreground service start, after these new permissions added locally in our AndroidManifest, crash is avoided but no service is actually launched

error log:
E/ForegroundServicePlugin(19650): error while launching foreground service: Starting FGS with type mediaProjection callerApp=ProcessRecord{58cf318 19650:com.example.application/u0a199} targetSDK=34 requires permissions: all of the permissions allOf=true [android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION] any of the permissions allOf=false [android.permission.CAPTURE_VIDEO_OUTPUT, android:project_media]

@shlomi-ts shlomi-ts added the bugfix a bug fix label Jul 10, 2024
@pvictorcosmo
Copy link

+1 also interested on fix

@devr-tech
Copy link

any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix a bug fix
Projects
None yet
Development

No branches or pull requests

3 participants