【问题标题】:iOS Push Notifications with NodeJS - credentials使用 NodeJS 的 iOS 推送通知 - 凭据
【发布时间】:2013-12-25 15:37:57
【问题描述】:

我需要实现将通知推送到 iOS 应用程序的服务器端代码。我关注了this link

问题是我总是收到“凭据不足”的消息。我正在使用apnagent 节点模块。

有人试过成功吗?我应该做些什么来设置我的凭据吗?

提前致谢。

【问题讨论】:

    标签: ios node.js push-notification engineyard apnagent


    【解决方案1】:

    是的,我刚刚运行了 apnagent。假设您正确设置了证书和应用程序,我可以使用它:

    • certificate.p12 和密码,
    • cert.pem 和 key.pem 文件

    即:

    agent
        .set('cert file', join(__dirname, '../_cert/apn-dev-cert.pem'))
        .set('key file', join(__dirname, '../_cert/apn-dev-key.pem'))
        //or this works too:
        // .set('pfx file', join(__dirname, '../_cert/Certificates.p12'))
        // .set('passphrase', 'your passphrase')
        .enable('sandbox')
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-18
      • 2016-03-13
      • 1970-01-01
      • 2019-01-30
      • 1970-01-01
      相关资源
      最近更新 更多