livekit / client-sdk-flutter

Flutter Client SDK for LiveKit
https://docs.livekit.io
Apache License 2.0
229 stars 109 forks source link

#469 is still occurring on Pixel 7 series #485

Closed acgacgacgacg closed 2 months ago

acgacgacgacg commented 3 months ago

The original issue #469 solved most android devices except Pixel 7 series.

As I mentioned here, we still detected the following crash through crash report.

Google Pixel7, Pixel7a, Pixel7 Pro had this issue. The crash log is the same as the one I reported here.

Fatal Exception: java.lang.RuntimeException
Unable to start service de.julianassmann.flutter_background.IsolateHolderService@8212701 with Intent { act=START cmp=com.example.app/de.julianassmann.flutter_background.IsolateHolderService }: java.lang.SecurityException: Starting FGS with type mediaProjection callerApp=ProcessRecord{28e5a1d 21645:com.example.app/u0a129} 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]

We do not have a Pixel7 device to reproduce this problem. Can you help us identify the problem?

davidliu commented 3 months ago

I wasn't able to repro this. Worked fine on Pixel 7.

acgacgacgacg commented 3 months ago

We still don't understand why this happened. Other devices like Xperia V encountered the same issue. All these devices are Android 14 and our app is compiled with sdk 34. Temporarily we downgrade the compile sdk to 33.

cloudwebrtc commented 2 months ago

Just tested it, Not reproduced on Pixel 7, close the issue now If it happens again, please feel free to open it.