File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
example/android/app/src/main Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,12 @@ Enabling screenshare requires extra installation steps:
295295
296296Android screenshare requires a foreground service with type ` mediaProjection ` to be present.
297297
298- From version 2.4.0 onwards, this is handled internally and no extra setup is required.
298+ From version 2.4.0 onwards, the foreground service is handled internally,
299+ but you must declare the permission yourself in your app's AndroidManifest.xml file.
300+
301+ ```
302+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
303+ ```
299304
300305### iOS
301306
Original file line number Diff line number Diff line change 1111 <uses-permission android : name =" android.permission.BLUETOOTH" />
1212 <uses-permission android : name =" android.permission.BLUETOOTH_ADMIN" />
1313 <uses-permission android : name =" android.permission.FOREGROUND_SERVICE" />
14- <uses-permission android : name =" android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
1514</manifest >
Original file line number Diff line number Diff line change 1212 <uses-permission android : name =" android.permission.FOREGROUND_SERVICE_CAMERA" />
1313 <uses-permission android : name =" android.permission.FOREGROUND_SERVICE_MICROPHONE" />
1414 <uses-permission android : name =" android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
15+ <uses-permission android : name =" android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
1516 <application
1617 android : name =" .MainApplication"
1718 android : label =" @string/app_name"
You can’t perform that action at this time.
0 commit comments