未收到推送通知

发布于 2024-08-19 03:09:57 字数 261 浏览 4 评论 0原文

之前我已经为开发推送通知配置了我的应用程序 ID,它工作正常。

但现在我已经更改了我的 appid,并且遵循了苹果文档中所述的相同程序,并且我已将新生成的 .p12 文件放在服务器端,但我现在没有推送到我的设备。

我对 Apple id 有疑问,我生成了开发和生产 ssl 证书,并且在程序门户中,两种环境都显示绿球。

如上所述,我已经创建了开发配置文件。在服务器端,我是否需要指向生产 ssl 或开发 ssl 进行测试。

有人对此有什么想法吗

previously i had configured my app id for development push notifications it was working fine.

But now i have changed my appid and i have followed the same procedure as stated in the apple docs and i have put newly generated .p12 file on the server side but i am not getting the push to my device now.

i have a doubt for an apple id i generate both development and production ssl certificates and in programme portal both environments shows green balls.

i have created development provision profile after doing as said above. in the sever side do i need to point to production ssl or development ssl for testing.

can anybody have any idea about this

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

触ぅ动初心 2024-08-26 03:09:57

这取决于您联系哪个服务器。

如果您在开发端进行测试,则必须使用适当的 SSL 证书和适当的设备令牌向沙箱 (gateway.sandbox.push.apple.com) 发送请求。

如果您处于生产/发布模式,则必须使用相应的信息。

您必须记住的另一件事是,对于每个证书,您必须注册您的设备以接收推送通知,并且如果您更改配置文件,则必须重新执行所有操作,因为设备令牌将会不同。

干杯,
虚拟网络

It depends which server are you contacting.

If you are testing on the development side, you have to send requests to the sandbox (gateway.sandbox.push.apple.com) using the appropriate SSL certificate and the appropriated Device Token.

If you are on production/release mode, you have to use the correspondent info.

Another thing that you have to keep in mind is that, for each certificate you have to register your device for push notifications, and if you change the provisioning profile, you have to do everything again, because the Device Token will be different.

Cheers,
VFN

澉约 2024-08-26 03:09:57

确保您正在测试的设备没有同时具有开发配置文件和分发配置文件。只有分发(临时)配置文件必须存在。

Make sure that the device which you are testing doesn't have both the development profile and the distribution profile. Only distribution (adhoc) profile must be there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文