Today in the morning I tried to upload a new build with some bug fixes for my iOS Application to AppStore, Archiving the binary was successful but I couldn't upload it to itunesConnect for publishing. The error was related to some distribution certificate so I got a hint about the issue.
While going through the Keychain Access, I saw that my iOS Distribution certificate just expired in the morning.
I logged into my developer account and created a new distribution certificate and installed it to my keychain. But after this new certificate, my push notifications aren't working anymore.
I don't receive any kind of push notifications (with payload or simple notification) on my app. I can see the notification and data payload in logs.
I've read some other posts saying that this second method is deprecated and is no longer reliable but It was working fine before the certificate update. So I don't understand what happened here. Or am I missing some other things to configure after the certificate update like provisioning profiles or maybe my APNs certificates (but I just recently switched to APNS auth key.p8)
I logged notification and payload in didReceive remoteMessage method in Appdelegate. But didReceiveRemoteNotification is never called.
Other than this Distribution Certificate, my developer certificate was expiring as well so I revoked it through dev account and generated a new one and installed it in the Xcode.
Xcode Version 10.1 (10B61) - Swift 4.2 - TestDevice iPhone X with iOS 11.2.6