Skip to content

Instantly share code, notes, and snippets.

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 SebastianOsinski/2e3afabaf8542d735547f5b3ff229d8f to your computer and use it in GitHub Desktop.
Save SebastianOsinski/2e3afabaf8542d735547f5b3ff229d8f to your computer and use it in GitHub Desktop.
curl -v \
-d '{"aps": {"alert": "This notification will be removed"}}' \
-H "apns-topic: <YOUR APP BUNDLE ID>" \
-H "apns-collapse-id: 1234" \
--http2 \
--cert <PATH TO YOUR CERTIFICATE IN PEM FORMAT> \https://api.development.push.apple.com/3/device/<DEVICE TOKEN>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment