-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase configuration #174
Comments
Hello @jempis, simply instantiate Firebase without passing any params: await Firebase.initializeApp(); |
Hi @AngeloAvv ,
|
@AngeloAvv
|
@jempis sounds like you forgot to add dependencies in the build.gradle files. |
Sorry @AngeloAvv , but what are this dependencies? |
@jempis you have to follow the one without flutterfire CLI: https://firebase.flutter.dev/docs/manual-installation |
-follow this youtube video for more: https://www.youtube.com/watch?v=Qn2ysnVMvEE |
This should be more clear in the flavorizr documentation. await Firebase.initializeApp(); without parameters, you should configure with dependencies below: For Android: android/build.gradle
android/app/build.gradle
Otherwise you will need to generate the firebase_options.dart for each flavor using Fluterfire CLI and load then properly inside Firebase.initializeApp(); |
I also had this issue. When setting up a new flutter project firebase tells you to add this line: Somehow (i don't know why) when changing this to |
Hi all,
i have try to implement the flutter_flavorizr with 2 flavors e two relative firebase projects.
This is the configuration in pubspec.yaml
After launch
flutter pub run flutter_flavorizr
i run app (with launch view) without a problem.But, after i add in app the firebase authentication, on run app return this error
Then i try to add this
await Firebase.initializeApp(name: "App Dev");
but return this:
i call the instance of FirebaseAuthentication with
firebase_auth.FirebaseAuth.instance;
i forgot to configure something?
Thanks
The text was updated successfully, but these errors were encountered: