Azure Apns Hub 不适用于生产证书 [英] Azure Apns Hub not working with production Certificate

查看:24
本文介绍了Azure Apns Hub 不适用于生产证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在沙盒模式下成功测试了一个 azure apns hub.现在,当我尝试切换到生产时,没有任何效果.我已阅读教程,并且我确定我正确生成了生产证书.有谁知道问题是什么?在某些时候,我想我已经读过,当我使用 Iphone 测试沙箱 apns 时,它可能在切换到生产后无法工作.

I have successfully tested an azure apns hub in sandbox mode. Now when I try to switch over to production, nothing works. I have read the tutorials, and i'm sure that I generated the production certificate right. Does anybody have an idea what the problem would be? At some point I think I have read that while I was using an Iphone to test the sandbox apns, it may not work after switching to production.

推荐答案

在调试了一些之后,我找到了问题所在.我必须使用生产证书运行我的应用程序.这意味着,我无法通过 Xcode 测试运行应用程序的生产 APNS,因为 xcode 会自动安装链接到沙箱 apns 的开发证书.使用生产证书在 xcode 之外运行应用程序.

After debugging some more, I figured out what the problem was. I had to run my application with the production certificate. That means, that I could not test the production APNS running the app through Xcode, since xcode would automatically install the development certicicate that is linked to the sandbox apns. Run the app outside of xcode, with the production certificate.

这篇关于Azure Apns Hub 不适用于生产证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆