Skip to content

Instantly share code, notes, and snippets.

@nezaidu
Forked from sebastianbenz/gcm-high-prio.sh
Created November 11, 2016 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nezaidu/54f2cd8aa75356af10b1e4a6df7dc9c5 to your computer and use it in GitHub Desktop.
Save nezaidu/54f2cd8aa75356af10b1e4a6df7dc9c5 to your computer and use it in GitHub Desktop.
Send high priority GCM messages via curl (Android Doze mode & App Standby testing)
curl -X POST \
-H "Authorization: key= YOUR-API-KEY" \
-H "Content-Type: application/json" \
-d '{
"registration_ids": [
"YOUR-GCM-REGISTRATION-ID"
],
"data": {
"message": "Hello Message"
},
"priority": "high"
}' \
https://android.googleapis.com/gcm/send
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment