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.