iosxcodefirebaseapp-store-connectfirebase-console

The Bundle ID in the certificate does not match the Bundle ID you entered


My Bundle ID of the certificate does not match the Bundle ID entered in the Firebase console and when I try to upload the certificate for Cloud Messaging. I get the error:

The Bundle ID in the certificate does not match the Bundle ID you entered.

My question is, what’d be the best way to match the Bundle IDs of my project in Xcode, Apple Developer Portal, and Firebase Console? Do I create a new app in iTunes Connect and then generate new certificates? Can I change Bundle IDs in Firebase Console or Apple Developer Portal? Or Can I simply create new certificates with the matching bundle IDs as it is in my Firebase Console without having to create a new app in iTunes Connect?


Solution

  • The Firebase documentation regarding certificates is misleading. In the section Configure an App ID for Push Notifications under step 8 it tells you to expand the arrow and export the private key. Don't do this, just export the certificate itself (i.e. on the line above the private key) as a .p12 and it will work.