Stay organized with collections
Save and categorize content based on your preferences.
public class
Message
extends Object
Represents a message that can be sent via Firebase Cloud Messaging (FCM). Contains payload
information as well as the recipient information. The recipient information must contain exactly
one token, topic or condition parameter. Instances of this class are thread-safe and immutable.
Use Message.Builder to create new instances.
[[["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 2021-04-28 UTC."],[],[],null,["# Message\n\npublic class **Message** extends Object \nRepresents a message that can be sent via Firebase Cloud Messaging (FCM). Contains payload\ninformation as well as the recipient information. The recipient information must contain exactly\none token, topic or condition parameter. Instances of this class are thread-safe and immutable.\nUse [Message.Builder](/docs/reference/admin/java/reference/com/google/firebase/messaging/Message.Builder) to create new instances. \n\n##### See Also\n\n- [FCM message\nformat](https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages) \n\n### Nested Class Summary\n\n|-------|---|---|---|\n| class | [Message.Builder](/docs/reference/admin/java/reference/com/google/firebase/messaging/Message.Builder) || |\n\n### Public Method Summary\n\n|--------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [Message.Builder](/docs/reference/admin/java/reference/com/google/firebase/messaging/Message.Builder) | [builder](/docs/reference/admin/java/reference/com/google/firebase/messaging/Message#builder())() Creates a new [Message.Builder](/docs/reference/admin/java/reference/com/google/firebase/messaging/Message.Builder). |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| Object | clone() |\n| boolean | equals(Object arg0) |\n| void | finalize() |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public static [Message.Builder](/docs/reference/admin/java/reference/com/google/firebase/messaging/Message.Builder)\n**builder**\n()\n\nCreates a new [Message.Builder](/docs/reference/admin/java/reference/com/google/firebase/messaging/Message.Builder). \n\n##### Returns\n\n- A [Message.Builder](/docs/reference/admin/java/reference/com/google/firebase/messaging/Message.Builder) instance."]]