why is it that this activates the onReceive on main activity
if(remoteMessage.getData().get("body").contains("new msg")) {
Intent intent = new Intent("NEW_MSG_RECEIVED");
LocalBroadcastManager.getInstance(this).sendBroadcast(intent);
}
but if I change the action in new intent to anything but NEW_MSG_RECEIVED it doesnt activate the onReceive
Comments
Post a Comment