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

查看:34
本文介绍了如何让我的调试应用程序版本在 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.

推荐答案

如果您想在生产模式下测试您的应用,您需要使用 ad hoc.

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天全站免登陆