We are receiving a Google Play Console warning when uploading our app targeting Android 15 (API 35).
The Play Console reports that the app is starting a restricted foreground service from a BOOT_COMPLETED broadcast receiver, which is not allowed starting in Android 15.
According to the report, this behavior is triggered from the following class:
com.oney.WebRTCModule.MediaProjectionService.onStartCommand
This appears to be coming from the WebRTC module that is used internally by the CometChat Calls SDK.
If this is not fixed, apps targeting Android 15 may crash on user devices.
Play Console Warning:
Restricted foreground service types
Apps targeting Android 15 or later cannot use BOOT_COMPLETED broadcast receivers to launch certain foreground service types. Doing this will cause your app to crash for users on Android 15 and later.
Your app starts restricted foreground service types using BOOT_COMPLETED broadcast receivers in the following place:
com.oney.WebRTCModule.MediaProjectionService.onStartCommand
SDK Versions Used:
CometChat Android SDK: 4.2.0
CometChat Calls SDK: 4.2.0
App Configuration:
Target SDK: Android 15 (API 35)
Expected Behavior:
The CometChat SDK should comply with Android 15 foreground service restrictions and should not start restricted foreground services from BOOT_COMPLETED receivers.
Actual Behavior:
Play Console detects a restricted foreground service started during boot, which may cause crashes on Android 15 devices.
Request:
Please confirm the following:
- Whether this issue has already been fixed in a newer CometChat SDK version.
- If there is any recommended workaround for apps targeting Android 15.
- Whether an SDK update is required to support Android 15 foreground service restrictions.
Additional Context:
This issue is detected during Play Store submission under Technical Quality checks.
Release Name: 20010 (2.0.10)