-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [firebase_analytics] Missing google_app_id. FIrebase Analytics disabled. #12078
Comments
same here, double confirmed on clean project and existing project. |
Hi @JCKodel, did you do the setup with the |
Attempt 1:
Same error (Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI) Attempt 2:
Same error (Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI) Nothing has changed. Reverting it to Also, why one build.gradle uses |
Hi @JCKodel, what google-service version is generated by the cli? |
And how do I check this? |
The version will be in your build.gradle file surrounded by |
Flutterfire doesn't touch build.gradle. I've created a new Flutter project, then added on a git repository and commit it. So, I ran These are the changes made by those two commands: Build.gradle (both of it) weren't touched. |
That's odd. Can you try using flutterfire_cli Using
& android/build.gradle has
|
TL;DR: It works.
This version of I had to clean my flutter pub cache, otherwise, it would not recognize After that, this code runs without any kind of warning (which I assume it worked) Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
FirebaseAnalytics.instance.logAppOpen();;
runApp(const MyApp());
} |
Thanks for letting us know, @JCKodel 🙏. There was a fix in flutterfire_cli |
Bug report
Describe the bug
Firebase won't work by default in Flutter.
I need to manually add those lines on my
android/build.grade
:and then apply it on
android/app/build.gradle
:Without those additions, the following error is displayed on the console:
E/FA: Missing google_app_id. Firebase Analytics disabled. See https://useless-link
But 4.3.15 is not the latest version. Documentation says it is 4.4.0. Problem is: with 4.4.0, the same error appears and analytics won't work.
In other words:
firebase_analytics
doesn't workSteps to reproduce
Steps to reproduce the behavior:
Expected behavior
To work, without any kind of warning, especially about deprecated APIs!!!!
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: