I am facing one issue when I am trying to confiure the GCM and getting configuration file. When I am trying to upload the production certificate over the GCM portal it says "Bundle Id in certificate doesn't match with Bundle Id you entered". I verified already for the same. Still no joy. Anyone help plz.
相关问题
- Core Data lightweight migration crashes after App
- Plugin with id 'com.google.gms.google-services
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
For my case, I have to export a cer not a private key.
I have been getting same exact problem in Firebase (FCM).
The only solution which has worked for me, which I found by hit and trial is while exporting the Cert as the P12, only select the Cert but don't select the Key.
You will still be able to export only the Cert (without the key) as a P12 file and set the password in a similar way.
Now uploading this P12 file with the provided password works for me.
Make sure to export only the certificate not the key... by clicking on the triangular/caret dropdown icon and deselecting the key
Make sure you're using your APNS certificate and not your regular development or production certificate. Just spent an hour on this until I realised my mistake!
Please select the Certificate instead of the key in the Keychain Access while exporting it to .p12.
A Password is Required when exporting the development certificate. The Development certificate would not upload with any of these suggestions until I added a password. I was, however, able to upload the Release certificate without a password. I also used the suggestion of @Sur Max to only export the certificate and not the key.
I tried it with both Development and Production .p12, both worked for me.
You need to make sure you generate a correct
.cer
certificate file from your Bundle ID, and need to make sure you export the correct.p12
file from your Keychain Access. You can view the sample steps in this page.You need to make sure the
iOS Bundle ID
you input in the GCM portal. (I use minecom.ziyang.samples.quickstart.gcm
)matches the Bundle ID in your Apple Developer Portal. (I use mine
com.ziyang.samples.quickstart.gcm
)If I miss typed the
iOS Bundle ID
in the GCM portal, it will show the below error: