Skip to content

Instantly share code, notes, and snippets.

@monossido
Created July 3, 2015 10:36
Show Gist options
  • Save monossido/acb5ce3240aa0446c129 to your computer and use it in GitHub Desktop.
Save monossido/acb5ce3240aa0446c129 to your computer and use it in GitHub Desktop.
Test GCM message
#!/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