Search code examples
iphoneiosapple-push-notifications

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.

Can someone let me know what the issue could be?

Thanks.


Solution

    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!!