Provide possibility to configure the firebase app purely from Flutter code #3926
Unanswered
devjeff
asked this question in
Feature request
Replies: 2 comments
-
Hello, Just to give more context on this topic:
The reason we opted to not do this, is that for newer users this is more complicated that just "download and add a file here". That being said, I think this is something we can do as more of an advanced workflow, however I still believe the existing way is best for the standard approach. For those users more experienced, I agree this can be beneficial. |
Beta Was this translation helpful? Give feedback.
0 replies
-
What priority does this request have? What is required to plan the implementation of this request into an upcoming release? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
With the new version of firebase_core it is already possible to configure the firebase app instance directly from Flutter code by passing the firebase options to the initializeApp method (https://firebase.flutter.dev/docs/overview#initializing-flutterfire).
Unfortunately, this Flutter side configuration is not sufficient for a proper configuration of the firebase plugins. For Android and iOS it is still required to generate the google-services.json (or google-services.plist) files from the firebase console and copy them into the corresponding project folders. If you have for example 3 flavors in your application, then you need to add 3 google-services files for Android and 3 files for iOS. It would be helpful to pass the firebase configuration options via flutter code only (as it is already possible for flutter web) to avoid tedious native configuration. I see the following advantages of this approach:
Beta Was this translation helpful? Give feedback.
All reactions