A remote Firebase Message.
Messages will be received via onMessageReceived(RemoteMessage) and can be sent via send(RemoteMessage).
Messages may have a RemoteMessage.Notification instance if they are received while the application
is in the foreground, otherwise they will be automatically posted to the notification tray.
Use the RemoteMessage.Builder class for building message instances to send via send(RemoteMessage).
| class | RemoteMessage.Builder | Builder object for constructing RemoteMessage instances. |
|
| @interface | RemoteMessage.MessagePriority | Priority of the message | |
| class | RemoteMessage.Notification | Remote Firebase notification details. | |
| int | PRIORITY_HIGH | |
| int | PRIORITY_NORMAL | |
| int | PRIORITY_UNKNOWN |
| String |
getCollapseKey()
Gets the collapse key of the message.
|
| Map<String, String> |
getData()
Gets the message payload data.
|
| String |
getFrom()
Get the sender of this message.
|
| String |
getMessageId()
Gets the message's ID.
|
| String |
getMessageType()
Gets the type of message.
|
| RemoteMessage.Notification |
getNotification()
Gets the notification data from the message if set.
|
| int |
getOriginalPriority()
Gets the original priority of message.
|
| int |
getPriority()
Gets the priority of message as delivered.
|
| String |
getSenderId()
Gets the Sender ID for the sender of this message.
|
| long |
getSentTime()
Gets the time in milliseconds from the Epoch that the message was sent.
|
| String |
getTo()
Gets the message destination.
|
| int |
getTtl()
Gets the message time to live (TTL) in seconds.
|
| void |
writeToParcel(Parcel out, int flags)
|
Gets the message payload data.
Get the sender of this message.
This will be the sender ID or the topic for topic messages.
Gets the message's ID.
This is automatically generated by the server. Treat it as an opaque string. Do not rely on its format to be consistent.
Gets the notification data from the message if set.
This field will be non-null if a notification message is received while the application is in the foreground.
Gets the original priority of message.
Gets the priority of message as delivered. This may be lower than the priority originally requested.
Gets the Sender ID for the sender of this message.
Gets the time in milliseconds from the Epoch that the message was sent.
Gets the message destination.
SENDER_ID@fcm.googleapis.com.
Gets the message time to live (TTL) in seconds.