开发者

Push notifications not working after generating new certificate

My app was configured to use push notifications and was working fine. My certificate expired and another of the team members created a new cert and sent me the p12 file to use. Got the certificate and updated the mobileprovision to use this new certificate.

I also regenerated the pem files for push notification. But now my push notifications don't work.

I tried generating the pem files twice already but apns wouldn't work开发者_如何学Python.

Can someone let me know what the issue could be?

Thanks.


Take in mind that if there is an invalid deviceToken sent when sending notifications, Apple will silently drop every message sent. So I guess that the problem may be that you have invalid deviceToken (probably from previous cert) that are being sent with your current cert. Are you registering with the Feedback service?


  1. Perform a soft-reset of the device
  2. Turned off push notifications on the device and turned them on again
  3. Turned off push notifications for the app and turned them on again in the settings

Not sure what part made the difference but push notifications work again!! Yay!!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜