【发布时间】:2013-12-25 15:37:57
【问题描述】:
我需要实现将通知推送到 iOS 应用程序的服务器端代码。我关注了this link。
问题是我总是收到“凭据不足”的消息。我正在使用apnagent 节点模块。
有人试过成功吗?我应该做些什么来设置我的凭据吗?
提前致谢。
【问题讨论】:
标签: ios node.js push-notification engineyard apnagent
我需要实现将通知推送到 iOS 应用程序的服务器端代码。我关注了this link。
问题是我总是收到“凭据不足”的消息。我正在使用apnagent 节点模块。
有人试过成功吗?我应该做些什么来设置我的凭据吗?
提前致谢。
【问题讨论】:
标签: ios node.js push-notification engineyard apnagent
是的,我刚刚运行了 apnagent。假设您正确设置了证书和应用程序,我可以使用它:
即:
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')
【讨论】: