Last active
August 4, 2021 15:29
-
-
Save sebastianbenz/240311ac0caf79721b24 to your computer and use it in GitHub Desktop.
Send high priority GCM messages via curl (Android Doze mode & App Standby testing)
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
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