Problem with Certificates and Provisioning provider in Phonegap Build

  • 1
  • Problem
  • Updated 4 years ago
Good morning!. I'm trying to build an app that uses push notifications. I generate all certificates and the provider profile right but when I put the private key of the iOS APNs Notificacion Service certificate in Phonegap Build I get the next error: "Certificate doesn't match profile: The default keychain doesn't have an identity matching". I generate the certificates and the provider profile as a Developer. I have read thousand of forums and nothing, I can't fix it. It is very frustrating. Can you help me, please?.

Thanks.
Photo of Unitel Desarrollo

Unitel Desarrollo

  • 3 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Two remarks, first:
1. Apparently you did not do everything right, otherwise there wouldn't be an error message
2. You did not read thousands of forums

Now, the error indicates that you selected a wrong certificate when creating the profile. Either it was revoked or it was of the wrong type.
Photo of Unitel Desarrollo

Unitel Desarrollo

  • 3 Posts
  • 0 Reply Likes
Hi Petra V. I have talked with Apple Support and they said that I do all right. I have sent to Apple a pdf with the steps that I do and they say all steps are right.
I create both certificate and provisioning profile as a developer.
Thank you!
Photo of Unitel Desarrollo

Unitel Desarrollo

  • 3 Posts
  • 0 Reply Likes
Push notifications works perfect on Android. I tested the same certificate and provisioning profile which I upload to PhoneGap Build on a native iOS application made with Xcode and works.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Push notifications works perfect on Android.
Not sure why you mention this. For Android, you don't build with iOS signing keys, so you can't go wrong with them.

I tested the same certificate and provisioning profile which I upload to PhoneGap Build on a native iOS application made with Xcode and works.
In that case, this would indicate that you did something wrong while building with PGB.
- You may think you created the signing key with the same p12 and mobileprovision, but in fact you inadvertently didn't.
- You created the signing key correctly, but then inadvertently failed to select it, before starting the build process.