Firebase: Cannot upload production APNs certificate

后端 未结 8 1376
孤独总比滥情好
孤独总比滥情好 2020-12-05 04:23

I am currently testing an app in TestFlight and need a production APNs certificate in order to test Notifications in Firebase.

I have followed all of the steps in th

相关标签:
8条回答
  • 2020-12-05 04:31

    Solved. 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 row in the list - it worked.

    Images to illustrate below credit iOS

    Correct method:

    0 讨论(0)
  • 2020-12-05 04:31

    There might be an inssue of semantics in some cases, so pay attention to meaning.
    When you have to upload the certificates in firebase console there are 2 boxes with placeholder text which read:
    1. No development APNs certificate
    2. No production APNs certificate

    In my case, I had understood that I must not upload a development APNs certificate in box 1. Actually, firebase meant that no development Apns certificate has been uploaded yet and that I could upload my certificate.

    0 讨论(0)
  • 2020-12-05 04:41

    I was having this problem after my previous p12 had expired, I was trying to upload as a new certificate and was getting the “does not match the current environment” error but it uploaded fine once I updated the expired p12 with the new p12 instead of trying to upload the new one alongside the expired one.

    0 讨论(0)
  • 2020-12-05 04:47

    I am facing the same problem and i have tried all above mentioned solution but nothing works for me than i delete certificate from keychain access and again download certificate and install it than export and try to upload it. It works for me.

    0 讨论(0)
  • 2020-12-05 04:49

    Don't select private ket in key chain, directly select certificate and create production certificate.

    1) Don't select private ket in key chain.

    2) Directly select certificate and create production certificate

    0 讨论(0)
  • 2020-12-05 04:55

    try this

    make .csr file and download cert from developer.apple.com

    while exporting select private key and certificate both at a same time and export to .p12 with any passphase.

    upload tht .p12 file on firebase console.

    Thanks

    0 讨论(0)
提交回复
热议问题