no firebase app ' default ' has been created flutter
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
runApp(MyApp());
}
no firebase app ' default ' has been created flutter
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
runApp(MyApp());
}
firebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp()
//It means you have not initialized your app.
//Maybe the location of the firebase_config file is written wrong.
//Else you can initialise your app by this script:
var firebaseConfig = {
apiKey: " <Provided by Firebase> ",
authDomain: " <Provided by Firebase> ",
projectId: " <Provided by Firebase> ",
storageBucket: " <Provided by Firebase> ",
databaseURL: " <Provided by Firebase> ",
messagingSenderId: " <Provided by Firebase> ",
appId: " <Provided by Firebase> ",
measurementId: " <Provided by Firebase> "
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
var storage = firebase.storage();
var storageRef = firebase.storage().ref();
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us