Skip to content

Instantly share code, notes, and snippets.

@nitrobin
Created November 11, 2015 10:35
Show Gist options
  • Save nitrobin/39a1b453a8b4ffe259d6 to your computer and use it in GitHub Desktop.
Save nitrobin/39a1b453a8b4ffe259d6 to your computer and use it in GitHub Desktop.
GCM test script
#!/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