我无法通过外部测试将Apple推送通知与TestFlight配合使用

时间:2016-01-29 10:48:22

标签: ios apple-push-notifications testflight

我正在开发一个使用Apple推送通知的应用。推送通知在应用程序的开发版本中没有问题。但是一旦我将它送到TestFlight进行外部测试,我就会在尝试发送推送通知的服务器上收到以下错误:

Notification caused error: 8 for device

我在上传应用之前清除了所有设备注册令牌,因此我确信这些令牌已在应用的TestFlight版本中注册。

我当然获得了Apple Push Services的生产证书,所以当我使用以下方式手动测试APN连接时:

openssl s_client -connect gateway.push.apple.com:2195 -cert apn-push-cert.pem -key apn-push-key.pem  -CAfile entrust_2048_ca.cer # production

我得到:Verify return code: 0 (ok)所以这部分应该没问题

当我检查会员中心的App ID时,它表示推送通知已启用分发。

当我查看我上传到TestFlight的App Archive的摘要时,它使用分发配置文件进行签名,我可以看到它有6个权利,其中包含: aps-environment production

那么我错过了什么?非常感谢任何帮助。

0 个答案:

没有答案