First, I just wonder how your question is. But after reading the document here and playing with it, I found that:
- You cannot get the message label on the client device, because it is just a label to display only on the firebase console.
- To get the name on the client side, you must use Advanced options , which automatically collapses at the bottom. Using advanced options, you can also send a data payload to a client by key / value.
- Then
remoteMessage.getNotification().getBody() for the notification message body (from the text of the message / Texte du message), remoteMessage.getNotification().getTitle() for the notitifcation header (from additional options), remoteMessage.getData() for the payload data (from additional options).
source share