Question:
How to make it so that when the application is in the backgrante, the push notification is not sent immediately to the notification center
, but is processed by the application using the onMessageReceived
method? The push is done on firebase
.
Answer:
remove the super.onMessageReceived(remoteMessage);
method super.onMessageReceived(remoteMessage);