android - FCM - Get Message Label -


to send message fcm backend, have view :

enter image description here

i wanna message label (libellé du message) remotemessage. when debug field, content in message labeled google.c.a.c_l, think internal field.

enter image description here

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

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -