Skip to content

Instantly share code, notes, and snippets.

@shikajiro
Created July 1, 2014 10:35
Show Gist options
  • Save shikajiro/54ebbb97196166bb0d65 to your computer and use it in GitHub Desktop.
Save shikajiro/54ebbb97196166bb0d65 to your computer and use it in GitHub Desktop.
gcm push curl
curl --header "Authorization: key=<server key>" --header Content-Type:"application/json" https://android.googleapis.com/gcm/send -d "{\"registration_ids\":[\"<registration id>\"],\"data\":{\"message\":\"Hello\"}}"
@shikajiro
Copy link
Author

GCMのテストpushをローカルから実行する場合の処理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment