cph-cachet / flutter-plugins

A collection of Flutter plugins developed by CACHET
540 stars 647 forks source link

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

Open shlomi-ts opened 2 months ago

shlomi-ts commented 2 months ago

[flutter_foreground_service 0.4.1]

Device / Emulator and OS

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]

pvictorcosmo commented 1 month ago

+1 also interested on fix

devr-tech commented 3 weeks ago

any updates?