This question already has an answer here:
- How to handle notification when app in background in Firebase 22 answers
Android push notification using FCM is unable to handle when application in background. Default message is displayed in notification tray.
Can Anyone help me how to handle the messages when application in background.
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
super.onMessageReceived(remoteMessage);
}
This method is not called when application is in background. Any help will be great help for me.