android - FCM - Get Message Label -
to send message fcm backend, have view :
i wanna message label (libellé du message) remotemessage
. when debug field, content in message labeled google.c.a.c_l
, think internal field.
first, wonder same question. after read document here , played around it, found that:
- you cannot message label on client device, because label display on firebase console only.
- to title @ client side, have use advanced options auto collapse @ bottom. advanced options, can send data payload client key/value.
- then
remotemessage.getnotification().getbody()
notification's message body (from message text/texte du message),remotemessage.getnotification().gettitle()
notitifcation's title (from advanced options),remotemessage.getdata()
data payload (from advanced options).
Comments
Post a Comment