推送通知不工作 [英] push notifications not working

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

问题描述

我知道这个问题已经被问,但我在回答的迫切需要。

我在我的应用程序实现推送通知。
起初一切工作很好,我得到警报。
但是有一天,我的证书过期,我更新了证书,并使用更新的P12文件。

I was implementing push notifications in my app. Initially everything was working fine and I was getting alerts. But one day my certificate expired and I renewed the cert and used the updated p12 file.

我重新生成PEM文件。但是现在我不再得到警示。

I regenerated the pem files. But now I stopped getting alerts.

我想这可能是我可能会有一些问题与P12文件,所以我再生他们几次。但是,推送通知不工作。

I thought that may be I there could be some issue with p12 files so I regenerated them several times. But push notifications don't work.

请建议行动来解决这个问题。
感谢名单提前。

Please suggest something to resolve this issue. Thanx in advance.

推荐答案

我得到了我的问题的解决方案。

I got the solution for my problem.

据有时苹果文档由于impersistent连接设备不能够与APNS连接。
因此,对于这一点,你需要在客从设置应用程序的通知频繁,这样的连接恢复与APNS。

According to apple docs sometimes due to impersistent connection the device is not able to connect with APNS. So for this you need to on-off Notifications from the Settings app frequently so that the connection is regained with APNS.

希望这节省了很多很多人被困在这个问题上的时间。

Hope this saves a lot of time of many people stuck in this issue.

这篇关于推送通知不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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