Inconsistency in receiving push notification

I found some weird behavior in the push notification. My iPod app receives push notifications until last week without any problems. Then I found that my application does not receive push notifications, and I changed the certificates, and it worked fine, and after 2 days it does not work. And I repeated the same process and the same problem. I was wondering why this is happening?

NOTE I use my own Java-based server to send push notifications. I am sure my certificate has not expired. During this problem, the icon identifier is also not displayed using the application icon. ??

Thanks in advance.

+6
source share
3 answers

Provide a few things

  • You are using the correct combination of production or dev pam and the URL of the APNS or sandbox server
  • Check the feedback services to make sure you get any errors.

I had similar issues with my 3GS running OS 4.1 last week. It started working after rebooting my device. Try this and see if it works.

+1
source

Please do not forget to update the device token in the database of your provider. I assume that some updates in your iOS / certificates may change the token of your device. Just do a test around this.

0
source

Try the lostInTransit solution and also check your internet connection. I also ran into this problem with my iPod, sometimes push notifications did not arrive on my iPod. Try it -

Install the facebook facebook application on your device. Send a test push notification from your server. If the notification does not come, do something on facebook that should generate the notification. If the notification from facebook does not come, it means that it is connected with your network connection. And your code is perfect.

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

0
source

Source: https://habr.com/ru/post/888283/


All Articles