如何使我的调试应用程序版本在iOS上接收生产推送通知? [英] How do I make my debug app version receive production push notifications on iOS?

查看:355
本文介绍了如何使我的调试应用程序版本在iOS上接收生产推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的服务器仅运行一种版本的发送推送通知,并且具有我的生产(发布)推送证书.

My server is sporting only one version of sending push notifications, and it has my production (release) push certificate.

如何使用相同的生产证书在调试设备和调试版本上测试通知?

How do I test the notifications on my debug device and debug builds, using the same production certificate?

我的设备正在发送令牌,但是当我尝试发送真实的推送通知时,Apple服务器返回状态8错误,这意味着设备令牌不正确.

My device is sending the token, but when I attempt to send a real push notification Apple servers return status 8 error, that means that device token is incorrect.

推荐答案

如果要在生产模式下测试应用程序,则需要使用

If you want to test your app in production mode, you will need distribute the Distribution version of your app using ad hoc.

准备好提交应用程序时,您将创建一个临时配置配置文件,指定与一个或多个应用程序,一组测试设备和一个分发证书相匹配的应用程序ID.

When your application ready for submission, you create an ad hoc provisioning profile specifying an App ID that matches one or more of your apps, a set of test devices, and a single distribution certificate.

以下是说明供应配置文件如何工作的图像:

Here is an image to illustrate how the provision profile works:

这篇关于如何使我的调试应用程序版本在iOS上接收生产推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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