美文网首页
终端命令测试推送

终端命令测试推送

作者: 咩咩sheep | 来源:发表于2017-05-24 18:33 被阅读0次

    推送 houston

    安装

    $ gem install houston

    导出p12

    • 打开钥匙串
    • 导出证书
    image.png

    p12 转到 pem

    证书不加密
    $ openssl pkcs12 -in cert.p12 -out apple_push_notification.pem -nodes -clcerts

    证书加密
    $ openssl pkcs12 -in cert.p12 -out apple_push_notification.pem -aes256 -clcerts

    推送命令

    $ apn push "<token>" -c /path/to/apple_push_notification.pem -m "Hello APNS"
    token中间不要有空格

    相关文章

      网友评论

          本文标题:终端命令测试推送

          本文链接:https://www.haomeiwen.com/subject/vruoxxtx.html