Created
November 11, 2015 10:35
-
-
Save nitrobin/39a1b453a8b4ffe259d6 to your computer and use it in GitHub Desktop.
GCM test script
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
#!/bin/sh | |
############################################### | |
## test GCM | |
############################################### | |
api_key="" | |
reg_id="" | |
curl --header "Authorization: key=$api_key" --header Content-Type:"application/json" https://android.googleapis.com/gcm/send -d "{\"registration_ids\":[\"$reg_id\"],\"data\":{\"message\":\"Test Android Push Notificaiton\"}}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment