Skip to content

Commit cdf28fb

Browse files
178inabahiranya911
andauthored
fix(fcm): Fix documents of FCM batch request limit (#347)
Co-authored-by: Hiranya Jayathilaka <[email protected]>
1 parent 7c2199d commit cdf28fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

messaging/messaging_batch.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const multipartBoundary = "__END_OF_PART__"
3838
// Messaging (FCM).
3939
//
4040
// It contains payload information as well as the list of device registration tokens to which the
41-
// message should be sent. A single MulticastMessage may contain up to 100 registration tokens.
41+
// message should be sent. A single MulticastMessage may contain up to 500 registration tokens.
4242
type MulticastMessage struct {
4343
Tokens []string
4444
Data map[string]string
@@ -89,7 +89,7 @@ type BatchResponse struct {
8989

9090
// SendAll sends the messages in the given array via Firebase Cloud Messaging.
9191
//
92-
// The messages array may contain up to 100 messages. SendAll employs batching to send the entire
92+
// The messages array may contain up to 500 messages. SendAll employs batching to send the entire
9393
// array of mssages as a single RPC call. Compared to the `Send()` function,
9494
// this is a significantly more efficient way to send multiple messages. The responses list
9595
// obtained from the return value corresponds to the order of the input messages. An error from
@@ -105,7 +105,7 @@ func (c *fcmClient) SendAll(ctx context.Context, messages []*Message) (*BatchRes
105105
// This function does not actually deliver any messages to target devices. Instead, it performs all
106106
// the SDK-level and backend validations on the messages, and emulates the send operation.
107107
//
108-
// The messages array may contain up to 100 messages. SendAllDryRun employs batching to send the
108+
// The messages array may contain up to 500 messages. SendAllDryRun employs batching to send the
109109
// entire array of mssages as a single RPC call. Compared to the `SendDryRun()` function, this
110110
// is a significantly more efficient way to validate sending multiple messages. The responses list
111111
// obtained from the return value corresponds to the order of the input messages. An error from
@@ -117,7 +117,7 @@ func (c *fcmClient) SendAllDryRun(ctx context.Context, messages []*Message) (*Ba
117117

118118
// SendMulticast sends the given multicast message to all the FCM registration tokens specified.
119119
//
120-
// The tokens array in MulticastMessage may contain up to 100 tokens. SendMulticast uses the
120+
// The tokens array in MulticastMessage may contain up to 500 tokens. SendMulticast uses the
121121
// `SendAll()` function to send the given message to all the target recipients. The
122122
// responses list obtained from the return value corresponds to the order of the input tokens. An
123123
// error from SendMulticast indicates a total failure -- i.e. the message could not be sent to any
@@ -137,7 +137,7 @@ func (c *fcmClient) SendMulticast(ctx context.Context, message *MulticastMessage
137137
// This function does not actually deliver any messages to target devices. Instead, it performs all
138138
// the SDK-level and backend validations on the messages, and emulates the send operation.
139139
//
140-
// The tokens array in MulticastMessage may contain up to 100 tokens. SendMulticastDryRun uses the
140+
// The tokens array in MulticastMessage may contain up to 500 tokens. SendMulticastDryRun uses the
141141
// `SendAllDryRun()` function to send the given message. The responses list obtained from
142142
// the return value corresponds to the order of the input tokens. An error from SendMulticastDryRun
143143
// indicates a total failure -- i.e. none of the messages were sent to FCM for validation. Partial

0 commit comments

Comments
 (0)