如何测试生产推送通知? [英] How to test production push notifications?

查看:25
本文介绍了如何测试生产推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我使用的是开发推送证书,推送通知效果很好.

Until now I used development push certificate and the push notifications worked great.

现在我想将我的应用程序提交给 Apple,因此我创建了一个生产证书并将其设置为代码签名身份"->发布"

Now I want to submit my app to Apple so I created a production certificate and set it under "code signing identity" -> "Release"

我还将 .p12 文件放在我的生产服务器中.
但是现在推送不起作用.

I also placed the .p12 file in my production server.
But the push now does not work.

当我从 xcode 运行时它可以工作吗?还是只能在从 App Store 下载应用程序时才能使用?如果是这样,我该如何测试?

Is it suppose to work when I run from xcode? or will it just work when downloading the app from App Store? If so how can I test it?

推荐答案

当您从 App Store 下载应用程序时,生产推送将起作用.

The production push will work when you download the app from the App Store.

更新:
您还可以使用应用程序的 AdHoc 构建测试生产推送;参见 Trinca 的回答.

更新:
现在,最简单的解决方案是使用 Apple 的 TestFlight.(在 TestFlight 中,可以轻松添加新的远程用户,向他们发送电子邮件邀请,然后他们可以在他们选择的任何设备上下载.)

UPDATE:
Now, the easiest solution is to use Apple's TestFlight. (In TestFlight, it is easy to add new remote users, sending them an email invitation, they then download on whatever device they choose.)

这篇关于如何测试生产推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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