Stay organized with collections
Save and categorize content based on your preferences.
public class
MulticastMessage
extends Object
Represents a message that can be sent to multiple devices via Firebase Cloud Messaging (FCM).
Contains payload information as well as the list of device registration tokens to which the
message should be sent. A single MulticastMessage may contain up to 500 registration
tokens.
This class and the associated Builder retain the order of tokens. Therefore the order of
the responses list obtained by calling getResponses() on the return value
of sendMulticast(MulticastMessage) corresponds to the order in which
tokens were added to the MulticastMessage.Builder.
[[["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,["public class **MulticastMessage** extends Object \nRepresents a message that can be sent to multiple devices via Firebase Cloud Messaging (FCM).\nContains payload information as well as the list of device registration tokens to which the\nmessage should be sent. A single `MulticastMessage` may contain up to 500 registration\ntokens.\n\nInstances of this class are thread-safe and immutable. Use [MulticastMessage.Builder](/docs/reference/admin/java/reference/com/google/firebase/messaging/MulticastMessage.Builder)\nto create new instances. See [sendMulticast(MulticastMessage)](/docs/reference/admin/java/reference/com/google/firebase/messaging/FirebaseMessaging#sendMulticast(com.google.firebase.messaging.MulticastMessage)) for\ndetails on how to send the message to FCM for multicast delivery.\n\nThis class and the associated Builder retain the order of tokens. Therefore the order of\nthe responses list obtained by calling [getResponses()](/docs/reference/admin/java/reference/com/google/firebase/messaging/BatchResponse#getResponses()) on the return value\nof [sendMulticast(MulticastMessage)](/docs/reference/admin/java/reference/com/google/firebase/messaging/FirebaseMessaging#sendMulticast(com.google.firebase.messaging.MulticastMessage)) corresponds to the order in which\ntokens were added to the [MulticastMessage.Builder](/docs/reference/admin/java/reference/com/google/firebase/messaging/MulticastMessage.Builder). \n\nNested Class Summary\n\nPublic Method Summary\n\nInherited Method Summary \nFrom class java.lang.Object \n\nPublic Methods \n\npublic static [MulticastMessage.Builder](/docs/reference/admin/java/reference/com/google/firebase/messaging/MulticastMessage.Builder)\n**builder**\n() \nCreates a new [MulticastMessage.Builder](/docs/reference/admin/java/reference/com/google/firebase/messaging/MulticastMessage.Builder). \n\nReturns\n\n- A [MulticastMessage.Builder](/docs/reference/admin/java/reference/com/google/firebase/messaging/MulticastMessage.Builder) instance."]]