Android Question [RESOLVED] Android 8.0 - Manifest Broadcast receivers

Jmu5667

Well-Known Member
Licensed User
Longtime User
Hello

Today we tested an app that broadcasts an intent and an app that receives the intent on Android 8.0. It did not work. I googled this issue and found the following, https://developer.android.com/guide/components/broadcast-exceptions

If I read this correctly, as of Android 8.0 we can no longer register for Intents in the Manifest, is this correct ?

Regards

John.
 

Jmu5667

Well-Known Member
Licensed User
Longtime User
You can only register static filters for the listed intents (or for explicit intents which are not relevant here).

So I am correct in saying that we cannot use the manifest for registering our own intents in Android 8.0+

Example of intent being listened for:

B4X:
AddReceiverText(svc_intents, <intent-filter> <action android:name="android.intent.action.SOS.now"/></intent-filter>)

Unfiltered log on Genymotion Android 8 emulator:

Background execution not allowed: receiving Intent { act=android.intent.action.SOS.now flg=0x10 } to com.atlas.sos.now.test/.svc_intents$svc_intents_BR
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…