insatll (mac)
brew install curl --with-nghttp2
brew link curl --force
use
./curl --version
1 |
|
- exec :
./curl -v -d '{"aps":{"alert":"Test Push","sound":"default"}}' --cert [xxx.pem] -H "apns-topic: [bundle_id]" --http2 https://api.development.push.apple.com/3/device/[token]