Created
April 24, 2021 12:37
-
-
Save ilovelili/935779c96d8f81df4c320f269dfc4045 to your computer and use it in GitHub Desktop.
fcm-2
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
msg := &messaging.Message{ | |
Data: map[string]string{ | |
"type": "mention", | |
"commentId": "1", | |
"picture": "https://cdn.woodstock.club/logo.png", | |
"name": "min", | |
"comment": "you are cool", | |
}, | |
Notification: &messaging.Notification{ | |
Title: category, | |
Body: body, | |
}, | |
Token: device.DeviceID, | |
} | |
_, err := fcmClient.Send(context.Background(), msg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment