When any FCM payload is received, the listener callback is called with a RemoteMessage.
RemoteMessage
This subscriber method is only called when the app is active (in the foreground).
Messaging instance.
Called with a RemoteMessage when a new FCM payload is received from the server.
Function to unsubscribe from the message listener.
When any FCM payload is received, the listener callback is called with a
RemoteMessage.