Skip to content

Instantly share code, notes, and snippets.

@Tetraquark
Created October 17, 2020 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tetraquark/91a08bcdda04f21a1732a9fc3e07e9e2 to your computer and use it in GitHub Desktop.
Save Tetraquark/91a08bcdda04f21a1732a9fc3e07e9e2 to your computer and use it in GitHub Desktop.
curl --location --request POST 'https://fcm.googleapis.com/fcm/send' \
--header 'Authorization: key=API_ACCESS_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"to": "CLIENT_PUSH_TOKEN",
"notification": {
"body": "Push text message",
"title": "Push title"
},
"data": {
"some_important_id": "1234"
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment