Stay organized with collections Save and categorize content based on your preferences.
RemoteMessage@SafeParcelable.Reserved(value = [1])
@SafeParcelable.Class(creator = "RemoteMessageCreator")
public final class RemoteMessage extends AbstractSafeParcelable
A remote Firebase Message.
Messages will be received via onMessageReceived
.
Messages may have a Notification
instance if they are received while the application is in the foreground, otherwise they will be automatically posted to the notification tray.
public @Nullable String getFrom()
Get the sender of this message.
This will be the sender ID or the topic for topic messages.
getMessageIdpublic @Nullable String getMessageId()
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.
getPriority@RemoteMessage.MessagePriority
public int getPriority()
Gets the priority of message as delivered. This may be lower than the priority originally requested.
Returnsint
The message priority as delivered
getSentTimepublic long getSentTime()
Gets the time in milliseconds from the Epoch that the message was sent.
Returnslong
The time that the message was sent
getTtlpublic int getTtl()
Gets the message time to live (TTL) in seconds.
Returnsint
The message TTL
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-21 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4