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:
295
295
296
296
Android screenshare requires a foreground service with type ` mediaProjection ` to be present.
297
297
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
+ ```
299
304
300
305
### iOS
301
306
Original file line number Diff line number Diff line change 11
11
<uses-permission android : name =" android.permission.BLUETOOTH" />
12
12
<uses-permission android : name =" android.permission.BLUETOOTH_ADMIN" />
13
13
<uses-permission android : name =" android.permission.FOREGROUND_SERVICE" />
14
- <uses-permission android : name =" android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
15
14
</manifest >
Original file line number Diff line number Diff line change 12
12
<uses-permission android : name =" android.permission.FOREGROUND_SERVICE_CAMERA" />
13
13
<uses-permission android : name =" android.permission.FOREGROUND_SERVICE_MICROPHONE" />
14
14
<uses-permission android : name =" android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
15
+ <uses-permission android : name =" android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
15
16
<application
16
17
android : name =" .MainApplication"
17
18
android : label =" @string/app_name"
You can’t perform that action at this time.
0 commit comments