コマンドラインでiPhoneにプッシュ通知を送る方法
Contents
1. ファイルをダウンロード
1 | curl -o sender.sh https://gist.githubusercontent.com/hmhv/7ab39297bdb5efe8b63cd024d893f6bd/raw/29328be9e54a3c1fe36f97369bb1f5d13db286d4/sender.sh |
2. 以下のページを参考にparams.shの各パラメータを編集
- Generating a Remote Notification
- Sending Notification Requests to APNs
- Sending Push Notifications Using Command-Line Tools
3. sender.shを実行
1 | ./sender.sh ./params.sh |
4. sender.shの内容
5. params.shの内容
Author: hmhv
Link: https://hmhv.info/2022/04/sending-push-notifications-with-cli/
License: 知识共享署名-非商业性使用 4.0 国际许可协议