服务器更改时推送通知不起作用

发布于 2024-11-18 05:05:25 字数 130 浏览 5 评论 0原文

我正在开发一个启用推送通知的应用程序。它在本地服务器(公司服务器 - PHP)中运行良好,但是当我将服务器更改为客户端服务器时,推送通知不起作用。

我使用了启用推送通知的开发和分发配置文件。

请帮助我克服这种情况。

I was developing an application with push notification enabled. It is working perfectly in the local server (company server - PHP), but when I change the server to the client server, the push notification is not working.

I used both the development and distribution profile with push notification enabled.

Please help me to overcome this situation.

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

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

发布评论

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

评论(1

帅的被狗咬 2024-11-25 05:05:25

当您的客户拥有 Ad Hoc(或 App Store)配置的应用程序时,是否仍在使用开发证书?

如果您的客户端已为 Ad Hoc(或 App Store)配置/签名了应用程序,那么您需要使用生产证书通过 APNS 发送推送通知。您还需要确保连接到 Apple 的生产服务器,而不是沙箱替代服务器。

Ad Hoc 必须使用证书和推送通知服务器的生产版本似乎有点奇怪,但事实就是如此。

Are still using a Development Certificate when your client has a Ad Hoc (or App Store) provisioned App?

If your client has the App provisioned / signed for Ad Hoc (or App Store) then you need to use the Production certificate to send Push Notifications via the APNS. You also need to make sure you connect to the Apple's production server, and not the sandbox alternative.

It seems a little odd that Ad Hoc has to use the production versions of Certificate and Push Notification server, but that's how it is.

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