iamshaunjp / iamshaunjp/flutter-firebase

[core/not-initialized] Firebase has not been correctly initialized.

Open
#40 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
586
Forks
427
PR merge metrics
No merged PRs in 30d

Description

I got this error after I we set the (dynamic result = await _auth.signInAnon(); in sign_in.dart )
and I add this code to the main.dart to initialize firebase
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: FirebaseOptions(apiKey: "XXXX",
appId: "",
messagingSenderId: "",
projectId: "XXXX")
);

and it works , my issue why we should do that, cause in the course it works without adding these lines.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.