Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aduquet/773e3c307e284e29e158639e3859a01c to your computer and use it in GitHub Desktop.
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
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