接收推送通知不一致

发布于 2024-11-07 20:10:59 字数 245 浏览 6 评论 0原文

我在推送通知中发现了一些奇怪的行为。我的 iPod 应用程序直到上周才收到推送通知,没有任何问题。然后我发现我的应用程序没有收到推送通知,我更改了证书,它工作正常,但 2 天后它不起作用。我重复了同样的过程和同样的问题。我想知道为什么会发生这种情况?

注意 我正在使用自己的基于 java 的服务器来发送推送通知。我确信我的证书没有过期。出现此问题时,徽章 ID 在我的应用程序图标中也不可见。?

提前致谢。

I found some weird behavior in push notification. My iPod app receives push notifications till last week with no issues. Then I found that my app is not receiving push notifications, and I changed the certificates and it worked fine, and after 2 days its not working. And I repeated the same process and same kinda problem. I was wondering why this happens?

NOTE I am using my own java based server to send push notification. I am sure that my certification are not expired. At the time of this problem the badge id is also not visible with my application icon.??

Thanks in advance.

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

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

发布评论

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

评论(3

卖梦商人 2024-11-14 20:10:59

确保几件事

  1. 您正在使用生产或开发 pem 以及 APNS 或沙箱服务器 URL 的正确组合
  2. 检查反馈服务以确保您是否收到任何错误

上周我在运行 OS 4.1 的 3GS 上遇到了类似的问题。我重新启动设备后它开始工作。尝试这样做,看看是否有效。

Ensure a few things

  1. You are using the correct combination of production or dev pem and the APNS or sandbox server URL
  2. Check the Feedback services to ensure whether you are getting any errors

I faced similar issues with my 3GS running OS 4.1 last week. It started working after I restarted my device. Try doing that and see if it works.

原来分手还会想你 2024-11-14 20:10:59

请确保更新您提供商的数据库中的设备令牌。我猜您的 iOS/证书中的某些更新可能会更改您的设备令牌。只需围绕它进行测试即可。

Please make sure to update the device token in the database of you provider. I guess some updates in your iOS/certificates may changed your device token. Just make a test around that.

ぽ尐不点ル 2024-11-14 20:10:59

尝试lostInTransit 的解决方案,并检查您的互联网连接。我的 iPod 也遇到了这个问题,有时推送通知不会出现在我的 iPod 中。试试这个 -

在您的设备上安装 facebook iPhone 应用程序。
从您的服务器发送测试推送通知。
如果没有收到通知,请使用 facebook 执行一些操作,该操作应该会生成通知。
如果没有来自 facebook 的通知,则意味着它与您的网络连接有关。并且您的代码是完美的。

有时我发现当我的 iPod 使用 DHCP 时,它不会收到通知,但当我为其分配静态网络(专用 IP)时,它工作正常。

Try lostInTransit's solution and also check for your internet connectivity. I also faced this issue with my iPod sometimes the push notifications not come in my iPod. Try this -

Install facebook iPhone app on your device.
Send a test push notification from your server.
If the notification does not come then do something with facebook which should generate the notification.
If the notification from facebook does not come it means its related to your net connectivity.And your code is perfect.

Sometimes I see that when my iPod is on DHCP it does not receive the notification but when I assign it a static network (dedicated IP) it works fine.

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