Postmanはhttp2に未対応なのでAPNsへのPOSTができない

https://stackoverflow.com/questions/45965619/apns-provider-api-and-postman

https://gist.github.com/greencoder/16d1f8d7b0fed5b49cf64312ce2b72cc

上記のリンクで紹介されている curl のサンプルを参考に、curl ではPOSTできた。

curl -v \
-d ‘{“aps”:{“alert”:{“title”:”title”,”subtitle”:”subtitle”,”body”:”body”}}}’ \
-H “apns-topic: <bundle id>” \
-H “apns-priority: 5” \
-H “Authorization: Bearer <JWT>” \
–http2 \
https://api.development.push.apple.com/3/device/<device token>

コメントを残す

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください