Myfirebasemessagingservice Is Not Working But Notification Is Shown
I receive notifications from Firebase but my classes I've created not working (not involved in the actions). Seems like they are shown by default. public class MyFirebaseMessaging
Solution 1:
There are two types of FCM messages: notification and data. They are handled differently in the receiving device. If you are sending a notification message with no data fields, the notification is generated by the client SDK and onMessageReceived()
is not invoked. This is explained in more detail in the documentation:
Notification Message: FCM automatically displays the message to end-user devices on behalf of the client app. Notification messages have a predefined set of user-visible keys and an optional data payload of custom key-value pairs.
Data Message: Client app is responsible for processing data messages. Data messages have only custom key-value pairs.
Post a Comment for "Myfirebasemessagingservice Is Not Working But Notification Is Shown"