-
-
Save secondsun/f659a34a43dd41c2a6509f2e5733f23f to your computer and use it in GitHub Desktop.
This file contains 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
export DEVICE_ID=//registration ID on device | |
export SERVER_KEY=//Google server Key | |
curl --header "Authorization: key=$SERVER_KEY" \ | |
--header Content-Type:"application/json" \ | |
-d '{"registration_ids":["'$DEVICE_ID'"],"data":{"alert": "áéíóúç"}}' \ | |
https://gcm-http.googleapis.com/gcm/send | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment