216
Views
3
Comments
[Firebase Cloud Message Plugin] Google services configuration file & deployments

Hi there,

In a multi-environment scenario (DEV, QA, PROD) there's the need to have a different Firebase project for each environment. We also have several applications (each with its application ID) depending on this component.

How do you handle the deployment of the application through several environments and the need to have different configuration files (google-service.json and GoogleService-Info.plist) that depend on the application ID?

Is there a way to set this file that doesn't involve manually replacing these files for each environment?

Thank you in advance,

David

2017-03-15 17-30-02
João Gonçalves

Hi David, 

Sadly, there's no other way to do it right now other than replacing those files manually for each environment type.


Best regards,

João Gonçalves

2017-03-15 17-30-02
João Gonçalves

Hi David, 


Actually I believe have found a better way of handling this, on your Firebase console, under the same project, you can configure multiple projects with different package names and you google-services.json/GoogleServices-info.plist files with contain the information of all the package names. This way you only need one google-services file for all environments.


Cheers,

João Gonçalves

2015-04-10 17-57-05
Pedro Coelho
 
MVP

Hi João Gonçalves

Can you add that info to the documentation?

Best regards,

PC

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.