API to upload APNs credentials
3
votes
![](https://secure.gravatar.com/avatar/23e33ad96f3ad515bb9fc43ad0928412?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Miguel Queiroz commented
Please we need this!
We manage apps under projects and need to automate CI/CD.We can already create the app, and setup everything but that part is missing.
I inspected how you do it in Firebase Console.
I could see they do the upload of the certificate .p8 file with this "internal API"
https://mobilesdk-pa.clients6.google.com/v1/projects/[project_id]/clients/ios:[ios_bundle_id]:setApnsAuthKey?key=[firebase console token key??]
the payload is:
{"keyId":"[Certificate .p8 ID]","privateKey":"[Certificate content]"}But I could not find a way to have the right token with the service account to call that endpoint.