I've implemented apns in my applicaton and it was working till yesterday without any problem. Today suddenly it stopped working and the following method is not being called:
-(void) application:(UIApplication) applicaton didRegisterForRemoteNotificationWithDeviceToken:(nonnull NSData *) deviceToken;
I didn't find any valid reason. My iOS version is 9.3.2;
In device log I see the following error message:
Failed to validate certificate chain for courier.sandbox.push.apple.com
I factory reset the device but it didn't work.
Interestingly, the apns works on my other device with same iOS version.
More interestingly, on the same device my another Test Push Application (same code copy and pasted) works fine.
Does anybody have any idea to solve this issue?
Thanks in advance.
Similar issue happened to me today as well on 3 test phones, all running iOS 9.3.2. One is an iPhone5 and the other is an iPhone 6.
The following insights may help avoid the problem, until fixed:
I saw that the problem only occur when signing the app with a development certificate. On production environment everything seemed to work as expected (both for regular APNS and for VoIP APNS).
The problem is reproducible only on one of our apps. A different app, even if signed as development, worked as expected (i.e. didRegisterForRemoteNotificationWithDeviceToken was called by the system).
The problem was not reproducible when testing the problematic app on an iOS 8.4.1 phone, both for regular APNS and for VoIP APNS.
Update for July 20, 2016: It seems that this was a temporary issue in APNS Sandbox environment, everything went back to normal today.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With