Created
July 3, 2015 10:36
-
-
Save monossido/acb5ce3240aa0446c129 to your computer and use it in GitHub Desktop.
Test GCM message
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
#!/bin/bash | |
#tablet | |
REGISTRATION_ID= | |
SERVER_KEY= | |
#force_ping | |
curl --header "Authorization: key=$SERVER_KEY" --header Content-Type:"application/json" https://android.googleapis.com/gcm/send -d "{ \"data\" : "somedata", \"registration_ids\":[\"$REGISTRATION_ID\"] }" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment