/No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() in Flutter and Firebase
Last active
April 11, 2022 04:47
-
-
Save aduquet/773e3c307e284e29e158639e3859a01c to your computer and use it in GitHub Desktop.
No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() in Flutter and Firebase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I had this problem, working with flutter and firebase | |
"No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() in Flutter and Firebase" | |
What I did to solve it was: | |
1. update firebase_core in the pubspec.yaml | |
2. I force the firebase to initialize before proceed whit this two lines | |
WidgetsFlutterBinding.ensureInitialized(); | |
await Firebase.initializeApp(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment