[英]will push notifications with Production-SSL certificate work when I'm still testing my app? How can I know it will work?
My push notifications are working fine with the sandbox model. 我的推送通知在沙盒模型中运行良好。 I just verified that the production ssl certificate is working both with direct SSL-connection and with AWS SNS.
我刚刚验证了生产ssl证书可用于直接SSL连接和AWS SNS。 However, my device is still producing the same push token as it produced for the sandbox, and this token is not working for production-level push notifications (rejected as invalid token by Apple server).
但是,我的设备仍在生成与为沙箱生成的推送令牌相同的推送令牌,并且此令牌不适用于生产级推送通知(Apple服务器拒绝为无效令牌)。 Is it supposed to work?
它应该工作吗? How can I make sure push notifications are working/will work for users who download the app from the app store?
我如何确保推送通知有效/将适用于从应用程序商店下载应用程序的用户?
Create a provisioning profile for "Ad Hoc" distribution, using your production certificate. 使用您的生产证书为“临时”分发创建配置文件。 Sign your app with that and install.
签署您的应用并安装。 Make sure your SSL connection to APNS knows which certificate to use, depending on whether client is production or dev.
确保与APNS的SSL连接知道要使用哪个证书,具体取决于客户端是生产人员还是开发人员。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.