Last active
October 19, 2022 06:23
-
-
Save nidhi-canopas/15a721ca40c8c8449263c0727db8b8c9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| response, err := fcmClient.SendMulticast(context.Background(), &messaging.MulticastMessage{ | |
| Notification: &messaging.Notification{ | |
| Title: "Congratulations!!", | |
| Body: "You have just implemented push notification", | |
| }, | |
| Tokens: deviceTokens, // it's an array of device tokens | |
| }) | |
| if err != nil { | |
| return err | |
| } | |
| log.Debug("Response success count : ", response.SuccessCount) | |
| log.Debug("Response failure count : ", response.FailureCount) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment