https://kotlinlang.org logo
#android
Title
# android
m

Markchous

10/08/2018, 2:56 PM
Running into an interesting issue with a
BroadcastReceiver
when trying to set a permission. So I set the permission in the sending app in the manifest using
<uses-permission.... />
and then include that permission in the
sendBroadcast(intent, permission)
call. And in the receiving app I have the permission set in the manifest where I am declaring the receiver. But my
BroadcastReceiver
won't accept the broadcast. The interesting thing is that as soon as I remove the permission from both apps, my broadcast works perfectly. Any ideas? Edit: Fixed. It was due to the app signature.
s

Sam

10/08/2018, 3:48 PM
Curious as well, just a hunch, could be something related to sharedUserId and/or app signature
m

Markchous

10/08/2018, 3:48 PM
App Signature 🙂
s

Sam

10/08/2018, 3:48 PM
👍
12 Views