when I don't initialize
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
it chrome shows the UI, but when I add it displays nothing . How can I solve this error chrome output, code warning
CodePudding user response:
So aparently when you are debugging it in web mode, you need to pass this option in the initializer function-
await Firebase.initializeApp(
options: FirebaseOptions(
apiKey: "",
appId: "",
messagingSenderId: "",
projectId: ""),
);
CodePudding user response:
You also have to initialize Firebase in index.html; here is the documentation.