service. I have a notification channel which works great when the app is in foreground. But when the app is in background it does not popup any reason why?
There are two objects in the json payload that you send from firebase. { "notification": {} "data": {} } If you always want to trigger your "onMessageReceived", Send only "data" object in fcm payload. { "data": {} } And keep notification title and notification body in this "data" object. Remember you have to process this "data" object and extract data and set it in notification.
Обсуждают сегодня