Skip to content

Instantly share code, notes, and snippets.

@MateusDeSousa
Created December 4, 2019 02:36
Show Gist options
  • Save MateusDeSousa/66f88f8c1d91ea8bf8dec4c3b4101e71 to your computer and use it in GitHub Desktop.
Save MateusDeSousa/66f88f8c1d91ea8bf8dec4c3b4101e71 to your computer and use it in GitHub Desktop.
curl -X POST -H "Authorization: key=chavedoservidorfirebase" -H "Content-Type: application/json" -d '{
"content_available": true,
"priority": "high",
"data": {
"link" : "https://www.hackingwithswift.com/example-code/system/how-to-open-a-url-in-safari",
"externalLink" : "www.deutudocertolinkexternal.com"
},
"notification": {
"title" : "Verique seu CPF agora",
"body" : "Veja se seu CPF permance regular",
"sound": "default"
}
"to":"tokendodispositivo"
}' "https://fcm.googleapis.com/fcm/send"
@MateusDeSousa
Copy link
Author

script para requisições de teste de push notification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment