firebase_messaging 9.0.1: error with Firebase.initializeApp() #5466
Unanswered
moderncodr
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 guys,
according to https://pub.dev/packages/firebase_messaging, with 9.0.1, there is no extra step to integrate it in flutter, it didn't mention to call Firebase.initializeApp().
I also read Cloud Messaging Usage documentation
but however, when I try to launch the app, it gives the error:
[ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: [core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp()
then if I add the call, I have the error saying:
Firebase has not been correctly initialized. Have you added the "google-services.json" file to the project?
I also tried to put the file in the android/app folder, same error.
I have created the project with flutter 2.0.1 and latest android studio.
Thanks for help!
Beta Was this translation helpful? Give feedback.
All reactions