I’ve reviewed the Android 15 documentation, specifically the section on ‘Restrictions on BOOT_COMPLETED broadcast receivers launching foreground services.’
It states that BOOT_COMPLETED receivers are restricted from launching the following types of foreground services: dataSync, camera, mediaPlayback, phoneCall, mediaProjection, microphone.
If a BOOT_COMPLETED receiver attempts to start any of these service types, the system throws a ForegroundServiceStartNotAllowedException.
However, my foreground service is of type shortService, and I’m encountering the following exception:
android.app.ForegroundServiceStartNotAllowedException: FGS type shortService not allowed to start from BOOT_COMPLETED!
Based on the documentation, shortService shouldn’t trigger this exception. Could anyone suggest what I might be doing wrong or any workarounds for this issue?