Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS APNS Cert about to Expire (Firebase for Server Side)

I have an APNS certificate that is set to expire in Jan 2017 on a live application. I have renewed the certificate and created my .cer and .p12 files.

I am using Firebase Cloud Messaging to handle my push notifications. If I add the new .p12 file to the firebase console now, will that overwrite the current one and break push notifications on the live app?

If so how do I manage a seamless transition to the new certificates? Do I just wait until the new app is live in the app store and then upload the .p12?

Thanks,

like image 250
Brien Crean Avatar asked Dec 08 '16 07:12

Brien Crean


People also ask

Do APNs certificates expire?

APN certificate(s) downloaded from Apple only have one year validity from the date it was created. Ensure that the managed iOS devices do not have to be re-enrolled into TMMS for Enterprise when an APN certificate expires after a year.

What happens if Apple push certificate expires?

You cannot renew your certificate if it has already expired, you don't have the password for the Apple ID that's associated with the certificate, or you use a different Apple ID. Instead, you must set up a new certificate. For details, see Set up an Apple push certificate.

Can I use Firebase for push notification to iOS?

Firebase Cloud Messaging (FCM) It's easy to fire push notifications from the server to FCM, and it handles the rest for iOS, Android, and the Web.

How do I add an APNs certificate to Firebase?

Upload your APNs authentication key Inside your project in the Firebase console, select the gear icon, select Project Settings, and then select the Cloud Messaging tab. In APNs authentication key under iOS app configuration, click the Upload button.


1 Answers

If the New push certificate created for the same AppID and contains the bundle ID of the existing app and push certificate is only used in firebase no where else then the old versions of your app should continue receiving push notifications using the new certificate , regardless of which certificate you use

Whenever you update your APNS certificate all version of the app that had push notification will receive the notifications again. There is no need to update the app for this.

like image 146
Shekhu Avatar answered Nov 06 '22 22:11

Shekhu