Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The APNs certificate provided does not match the current environment

It's my first time to update one app in app store after implementing the Firebase push notifications in the project. I'm trying to upload the "Production Certificate" in Firebase Console, but it gives me this:

The APNs certificate provided does not match the current environment

I want to make sure that after updating the app users will receive notifications.

Any link with tutorial to update one app in appstore is welcome.

like image 780
Egzon P. Avatar asked May 26 '17 11:05

Egzon P.


People also ask

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.

What is development APNs certificate?

Apple Push Notification Service (commonly referred to as Apple Notification Service or APNS) is a platform service created by Apple Inc. that enables third party application developers to send push notifications to iOS users. You must have Paid Apple Developer account to create certificates.


2 Answers

The mistake I was making was that I was exporting the "private key" part of the certificate in Keychain Access instead of the "certificate" part. As soon as I re exported the .p12 using the correct item - it worked.

Please refer to the answer given here

like image 195
Er. Vihar Avatar answered Sep 22 '22 11:09

Er. Vihar


The other possibility is:

You are confusing the development certificate with Production one in the certificate list of Key Chain Access.

Try to "Export" from the correct one.

This is what brought me here :)

like image 26
Fuat Avatar answered Sep 23 '22 11:09

Fuat