I have a Broadcast receiver in a singleton class that's not receiving Broadcast intents.
The singleton is initialized with a context (i.e. getInstance(context)).
I call getContext().sendBroadcast(intent); but the BroadcastReceiver doesn't get anything. I've confirmed the intent filters are matching.
The way I register the receiver is in my singleton constructor like so
private class Singleton(Context context) {
context.registerReceiver(mReceiver, INTENT_FILTER);
....
private onDestroy(Context context) {
context.unregisterReceiver(mReceiver);
....
What's going on!?