Created
January 5, 2017 10:52
-
-
Save andreban/5f747be2951f4a1779072f744081ff85 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
curl -X POST -H "Authorization: key=<Firebase Auth Key>" -H "Content-Type: application/json" -d '{ | |
"notification": { | |
"title": "A Notification to My Topic", | |
"body": "Add more information to your notification here!", | |
"icon": "https://www.example.com/my-notification-icon.png", | |
"click_action": "https://www.example.com/url-to-open-from-notification.html" | |
}, | |
"to": "/topics/my-topic" | |
}' "https://fcm.googleapis.com/fcm/send" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment