Jmu5667 Well-Known Member Licensed User Longtime User Oct 31, 2018 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Oct 31, 2018 #2 You can only register static filters for the listed intents (or for explicit intents which are not relevant here). Upvote 0
You can only register static filters for the listed intents (or for explicit intents which are not relevant here).
Jmu5667 Well-Known Member Licensed User Longtime User Nov 1, 2018 #3 Erel said: You can only register static filters for the listed intents (or for explicit intents which are not relevant here). Click to expand... 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
Erel said: You can only register static filters for the listed intents (or for explicit intents which are not relevant here). Click to expand... 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
Erel B4X founder Staff member Licensed User Longtime User Nov 1, 2018 #4 Jmu5667 said: So I am correct in saying that we cannot use the manifest for registering our own intents in Android 8.0+ Click to expand... Not correct. Try to set the intent component when you broadcast it. B4X: Intent.SetComponent("com.atlas.sos.now.test/.svc_intents$svc_intents_BR") Upvote 0
Jmu5667 said: So I am correct in saying that we cannot use the manifest for registering our own intents in Android 8.0+ Click to expand... Not correct. Try to set the intent component when you broadcast it. B4X: Intent.SetComponent("com.atlas.sos.now.test/.svc_intents$svc_intents_BR")
Jmu5667 Well-Known Member Licensed User Longtime User Nov 1, 2018 #5 Erel said: Not correct. Try to set the intent component when you broadcast it. B4X: Intent.SetComponent("com.atlas.sos.now.test/.svc_intents$svc_intents_BR") Click to expand... Many thanks Erel, that worked well. Upvote 0
Erel said: Not correct. Try to set the intent component when you broadcast it. B4X: Intent.SetComponent("com.atlas.sos.now.test/.svc_intents$svc_intents_BR") Click to expand... Many thanks Erel, that worked well.