Skip to content

Commit 5ff0e1d

Browse files
fix(fcm): Fix typo in max number of tokens (#467)
The API supports up to 500 tokens. Changing the comments in code to reflect that. b/197867415
1 parent 6c768ee commit 5ff0e1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

snippets/messaging.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func sendAll(ctx context.Context, client *messaging.Client) {
111111
registrationToken := "YOUR_REGISTRATION_TOKEN"
112112

113113
// [START send_all]
114-
// Create a list containing up to 100 messages.
114+
// Create a list containing up to 500 messages.
115115
messages := []*messaging.Message{
116116
{
117117
Notification: &messaging.Notification{
@@ -142,7 +142,7 @@ func sendAll(ctx context.Context, client *messaging.Client) {
142142

143143
func sendMulticast(ctx context.Context, client *messaging.Client) {
144144
// [START send_multicast]
145-
// Create a list containing up to 100 registration tokens.
145+
// Create a list containing up to 500 registration tokens.
146146
// This registration tokens come from the client FCM SDKs.
147147
registrationTokens := []string{
148148
"YOUR_REGISTRATION_TOKEN_1",
@@ -170,7 +170,7 @@ func sendMulticast(ctx context.Context, client *messaging.Client) {
170170

171171
func sendMulticastAndHandleErrors(ctx context.Context, client *messaging.Client) {
172172
// [START send_multicast_error]
173-
// Create a list containing up to 100 registration tokens.
173+
// Create a list containing up to 500 registration tokens.
174174
// This registration tokens come from the client FCM SDKs.
175175
registrationTokens := []string{
176176
"YOUR_REGISTRATION_TOKEN_1",

0 commit comments

Comments
 (0)