arnesson / cordova-plugin-firebase

Cordova plugin for Google Firebase
http://arnesson.github.io/cordova-plugin-firebase
MIT License
1k stars 1.55k forks source link

Is it possible to load the google-services files for both platforms dinamicaly? #1132

Open LifeEternal opened 4 years ago

LifeEternal commented 4 years ago

I'm working with outsystems which is a low code platform, and i've been trying to implement this plugin there. However I'm trying to have the right google services files for android/iOS based on the enviornment(dev,qa,prod). I've looked a bit into hooks, however I'm still not able to write one to do such thing.

sagits commented 4 years ago

Hi @LifeEternal, if you are using Ionic, you can use some angular.json configurations to replace the files that are in the root of your project (google-services.json/.plist) based on the angular environment (dev/prod).