firebase-tools icon indicating copy to clipboard operation
firebase-tools copied to clipboard

[Question] Update push notification certificate

Open bguidolim opened this issue 6 years ago • 14 comments

Hi! I would like to know if is it possible to update push notification certificates for an existing app on Firebase using CLI tools.

bguidolim avatar Feb 10 '20 14:02 bguidolim

@bguidolim I assume you're talking about an APNS certificate? Sorry that's not something you can do from the CLI.

samtstern avatar Feb 11 '20 17:02 samtstern

Any plans to add it in the near future?

bguidolim avatar Feb 11 '20 17:02 bguidolim

@bguidolim no we don't have any current plans for this as it's not a feature request I've heard before. Could you explain a little more about when you need to do this and how often it comes up?

samtstern avatar Feb 11 '20 17:02 samtstern

@samtstern Sure! We have some apps on our CI chain, and we use Fastlane to build and configure those apps. We are not able to use the Authentication Key, so we use the APNS certificates, which has expiration date.

With Fastlane we are able to generate new certificates when it is about to expire and then upload the new certificates to somewhere. Would be great if I can upload the new certificates to the Firebase app via CLI or REST API, but AFAIK it’s not possible now.

Some other platforms, like OneSignal, allows this kind of request on their API.

bguidolim avatar Feb 11 '20 17:02 bguidolim

@bguidolim thanks! Since that's a relatively infrequent use case I don't see us adding it to the CLI but it does seem like a good candidate for the Firebase Management API (which you can access via REST).

To voice your support for adding that feature to the REST API, please file a feature request here: https://firebase.google.com/support

Sorry to make you repeat yourself in a new form but it helps to when a "real developer" files a feature request versus if I did it on your behalf.

samtstern avatar Feb 11 '20 23:02 samtstern

Hi @bguidolim any news, cause it is a stopper for my CI pipeline

xalikoutis avatar Oct 14 '20 12:10 xalikoutis

@xalikoutis no response until now. For now, my CI is uploading the new certs to a bucket and sending a notification to the team, so manually we update the projects.

bguidolim avatar Oct 14 '20 12:10 bguidolim

OMG...I ll create an selenium scrap bot to aytomate login, navigate and upload the APNs

xalikoutis avatar Oct 14 '20 12:10 xalikoutis

@xalikoutis hehehe, good luck :)

bguidolim avatar Oct 14 '20 12:10 bguidolim

Any news about this feature ?

yacineblr avatar Mar 14 '22 16:03 yacineblr

Any update?

xalikoutis avatar Oct 01 '24 13:10 xalikoutis

Would like this feature as well. Only step that is not scriptable.

kopino4 avatar Jan 28 '25 11:01 kopino4

2025 up

xalikoutis avatar Feb 12 '25 08:02 xalikoutis

Hello everyone. Bumping this in late 2025, as it's still a critical blocker for automated CI/CD.

For teams like mine managing white-label apps at scale, the manual APNs .p8 upload is the only part of our new-app provisioning that cannot be scripted.

As the Firebase team is now tracking feature requests on their official support page, I've found the request for this feature here:

https://firebase.uservoice.com/forums/948424-general/suggestions/46562308-api-to-upload-apns-credentials

For everyone who finds this issue (including @bguidolim, @xalikoutis, @yacineblr, @kopino4), please add your vote and use case to that official page. Consolidating our feedback there is the best way to get this prioritized.

caio-pellegrini avatar Nov 06 '25 15:11 caio-pellegrini