I'm implementing Parse push notification. I have 2 receivers. First one will always show notification and second one will take over notification if one particular activity is running. One registered in manifest (priority 1) and the other is registered/unregistered dynamically (priority 2). My problem is that I cant cancel the broadcast from my dynamic receiver by calling
abortBroadcast()
it throws an exception
BroadcastReceiver trying to return result during a non-ordered broadcast
So, is there a way to make the broadcast ordered or something like that? I really want to handle the data in my activity when it is active.
sendOrderedBroadcastinstead ofsendBroadcastwhen sending theIntent?PushService(registered in manifest). I think its not an ordered broadcast. Is there any way to override it? I want my activity to get the data if it is active.