I'm working on an app in which i get from the server some push notifications when some events are triggered.
When the application is in foreground all works great, in the onMessageReceived() i get the remoteMessage and handle it based on its map key value.
The problem is in background or when the application is not running...I still get the notification in the device screen, and when i tap on it the activity starts.
I do the following verification after the activity starts:
Bundle mBundle = getIntent().getExtras();
if(mBundle != null)
{
//do stuff
}
But i always get the mMap = null in the bundle object which means i cannot handle properly the push notification.
Can something be done about this ?