I followed every step mentioned in firebase and also used the method Firebase.initializeApp(). Am I missing something because of which I am still getting this error?
Asked
Active
Viewed 50 times
0
-
Did you add google-service.json file to project folders and as well as other configurations? – Yohan Malshika Jun 21 '21 at 11:56
-
@Yohan Malshika Yes all those set up done.......when I try to debug in android emulator I get error failed connecting to service protocol and in web chrome I get that error of not initiliazing firebase – Milan Poudel Jun 21 '21 at 13:29
-
Hi, did you try to add .then and .catch instead of whenComplete? do you get any error? – Remoo Jun 21 '21 at 13:54
-
Yes I tried using . initialize ().then((runApp......still the same error.....don't know where I am doing wrong – Milan Poudel Jun 21 '21 at 14:05
-
Does this answer your question? [No Firebase App '\[DEFAULT\]' has been created - call Firebase.initializeApp() in Flutter and Firebase](https://stackoverflow.com/questions/63492211/no-firebase-app-default-has-been-created-call-firebase-initializeapp-in) – Lang Minh Nguyên Jun 21 '21 at 16:43