Closed kNoAPP closed 4 days ago
Please note, you can work around this issue by using a target of Android API 33.
To do screenshare on Android, you need flutter_background package, then you also need to make sure in the AndroidManifest.xml that:
Add <service android:name="de.julianassmann.flutter_background.IsolateHolderService" android:enabled="true" android:exported="false" android:foregroundServiceType="mediaProjection" />
inside of <application>
and before <activity>
Add `
More detail you could check the code in this file
I've tried change the targetSdkVersion
to 34 and it still works correctly! Hope this helps!
Issue still present, but under a different error. Opening a new issue with video.
Describe the bug After Android API level 34 (impacting Android 14), screen-share functionality according to the LiveKit documentation results in an app crash event.
To Reproduce Set the example app's build.gradle target SDK to 34 or higher (currently 31). This is reproducible despite the changes in https://github.com/livekit/client-sdk-flutter/pull/470.
Expected behavior Android API level 34+ should have instructions documented to fix this issue. Otherwise, a general warning about targeting API 34+ should be added to the documentation.
Platform information
No issues found!