Does an app that sends multiple notifications per day (e.g., 5-10 times daily for medical reminders) using a Receiver with StartServiceExact require the android.permission.FOREGROUND_SERVICE permission to work on Android 14? It works fine on Android 13 and below
i already use reciver ,please check my post (using a Receiver with StartServiceExact)
did this require the android.permission.FOREGROUND_SERVICE permission to work on Android 14? It works fine on Android 13 and below
A receiver will never need the FOREGROUND_SERVICE permission. This permission is needed when you call Service.StartForeground (in some cases it is called by the framework). Something that isn't possible with receivers.
With the new imodules that allow you to work better with the intent and receivers, it is necessary to develop some examples of how to use them (even before it could be done but not in such a direct way). SOME DETAILS This B4A update handles static receivers not dynamic ones. Some intents no...
A receiver will never need the FOREGROUND_SERVICE permission. This permission is needed when you call Service.StartForeground (in some cases it is called by the framework). Something that isn't possible with receivers.
the issue with me ,some times i get errors on android 14 ,please check attached crash report
notes
i have no StartForeground
i just use StartServiceExact
This error happens on Android 14 when the starter service is being started while the app is in the background. This is no longer possible.
This is reason for the starter service not being started when receivers are started.
Maybe you are doing something wrong in the receiver. Or maybe the error isn't related.
This error happens on Android 14 when the starter service is being started while the app is in the background. This is no longer possible.
This is reason for the starter service not being started when receivers are started.
Maybe you are doing something wrong in the receiver. Or maybe the error isn't related.
Thank you for your feedback and for pointing that out! I appreciate your assistance. Could you please provide more details or examples of what might possibly be wrong in the receiver? This would help me narrow down the issue and address it more effectively.
Notes :
Everything works perfectly on Android 13 and older versions.
sometines error happens even when app in forground