Allow Android/iOS apps to select dynamically which Firebase project should be used on startup
Some scenarios require dynamically switching from one Firebase project to another, including Analytics and Crashlytics, For example, switching from a Firebase project set up for a staging environment (which requires to collect Analytics and crashes) to another set up for a production environment.
There could be many solutions to this problem, such as having multiple plist/json files and switching them dynamically, or no longer requiring these files and simply using object instances that store the configuration (e.g., using the FirebaseOptions builder). The best solution should satisfy the scenario described above.
This idea comes from this issue https://github.com/firebase/firebase-android-sdk/issues/66
-
Khaled Shehadeh commented
I guess this would remove the inconvenience of manually specifying the directory of the plist files for the different projects and then initializing it through `FirebaseApp.configure(options: options)`. But it is just a few lines and I think it is out of the realm of Firebase SDK and more into the IDE you are using.