[Firebase Cloud Message Plugin] Google services configuration file & deployments

[Firebase Cloud Message Plugin] Google services configuration file & deployments

  
Forge Component
(4)
Published on 20 Aug by Experts
4 votes
Published on 20 Aug by Experts

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

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

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

Hi João Gonçalves

Can you add that info to the documentation?

Best regards,

PC