Skip to content

Instantly share code, notes, and snippets.

@StefMa
Created January 21, 2017 12:01
Show Gist options
  • Save StefMa/3935064ea7dd7c51c23e243d8245af63 to your computer and use it in GitHub Desktop.
Save StefMa/3935064ea7dd7c51c23e243d8245af63 to your computer and use it in GitHub Desktop.
Firebase Cloud Message with Curl
# 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