Created
May 11, 2016 17:04
-
-
Save greencoder/16d1f8d7b0fed5b49cf64312ce2b72cc to your computer and use it in GitHub Desktop.
Curl the APNS http/2 API
This file contains hidden or 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
# Note: You MUST have curl 7.47+ with http/2 support compiled in | |
curl -v \ | |
-d '{"aps":{"alert":"<message>","badge":42}}' \ | |
-H "apns-topic: <bundle id>" \ | |
-H "apns-priority: 10" \ | |
--http2 \ | |
--cert <certificate file> \ | |
https://api.development.push.apple.com/3/device/<device token> |
can anyone know how can i get an authorization token?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://developer.apple.com/documentation/usernotifications/sending_push_notifications_using_command-line_tools