Skip to content

Commit 62cb8bd

Browse files
authored
fix(android): remove MediaProjectionService from merged manifest (#7190)
1 parent 0e6f6ae commit 62cb8bd

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

android/app/src/main/AndroidManifest.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,15 @@
146146
</service>
147147

148148
<service android:name="io.wazo.callkeep.RNCallKeepBackgroundMessagingService" />
149+
150+
<!-- react-native-webrtc ships MediaProjectionService (foregroundServiceType=mediaProjection)
151+
for screen sharing. We don't use screen sharing, and Android 15+ forbids starting
152+
restricted foreground service types from BOOT_COMPLETED receivers (expo-notifications
153+
merges one in). Play Console flags this as a crash risk. Strip it from the merged
154+
manifest. To re-enable, remove this block and set enableMediaProjectionService=true. -->
155+
<service
156+
android:name="com.oney.WebRTCModule.MediaProjectionService"
157+
tools:node="remove" />
149158
</application>
150159

151160
<queries>

0 commit comments

Comments
 (0)