I build an ionic app based on capacitor that use firebase. Until now I had one environment but after launch of the app, I want to have a dev environment and a prod environent, in order to not change the data in production.
So I created a new firebase project. In this project I created a web app and android app.
I copy the firebaseConfig
from the web app and put it in the environment.ts while the prod firebaseConfig
is in environment.prod.ts.
I run several test to understand how do I use each environment and my conclusion is that google-service.json
has no impact on ionic app. I test it on the chrome simulator and on real devices.
I summerized my tests on the following table (result column is the actual environment that used):
As you can see, the google-services.json
has no impact at all. The only thing that matter is the --prod
since it determince which environment.ts file is used.
Am I right?
1 post - 1 participant