No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp() #6721
Unanswered
AirtonLucianoAragao
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I am new with Flutter and am trying to debug on Chrome a App that works fine at Android Emulator. I ve already have a call to Firebase App.initializeApp() at the MAIN dart file but it seems that this is required also at the generated web.entrypoint.dart that I cannot edit.
What do I have to do ?
Thanks a lot
Here is the relevant main.dart lines of code:
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
// ESSAS DUAS LINHAS ABAIXO SÃO PRA SETAR O EMULADOR, ACHO
FirebaseFirestore.instance.settings = Settings(
host: '10.0.0.115:8080', sslEnabled: false,
persistenceEnabled: false);
//host: '10.0.1.14:8080', sslEnabled: false, persistenceEnabled:
false);
print('INICIOU NO MAIN');
Beta Was this translation helpful? Give feedback.
All reactions