Last active
May 20, 2020 20:51
-
-
Save Kiolk/7e7bd0c80202aadefdf0778aee47074e to your computer and use it in GitHub Desktop.
Data notification with cURL
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=<SERVER_KEY>" \ | |
-H "Content-Type: application/json" \ | |
-d '{"to":"<DEVICE_ID>","collapse_key":"type_a","data":{"body":"Notification body","title":"Notification title","key1":"Your value","key2":"Your other value"}}' \ | |
https://fcm.googleapis.com/fcm/send |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment