Created
January 21, 2017 12:01
-
-
Save StefMa/3935064ea7dd7c51c23e243d8245af63 to your computer and use it in GitHub Desktop.
Firebase Cloud Message 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
# SERVER_KEY can be found under Overview -> Settings -> Cloud Messaging: ServerKey | |
curl https://fcm.googleapis.com/fcm/send -X POST --header "Authorization: key=SERVER_KEY" --Header "Content-Type: application/json" -d ' | |
{ | |
"to" : "FCM_TOKEN" | |
"data" : { | |
# Some Data | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment