CLI installation not working (Missing google_app_id)

192

You may need to manually install Firebase if you're trying to use Analytics on Android. As stated in the configuration tutorial:

Some plugins or platforms do not fully support Dart-only Firebase initialization yet, if you need to use the plugins then the manual installation steps should be followed first.

Analytics, Crashlytics and Performance Monitoring are currently unsupported for Dart-only initialisation. The full list of supported and unsupported platforms for Dart-only initialisation is here.

Share:
192
Aymalow
Author by

Aymalow

Updated on January 02, 2023

Comments

  • Aymalow
    Aymalow over 1 year

    I've tried to install FlutterFire using CLI, but when I try to use logEvent() in my app, I have the following error:

    Missing google_app_id. Firebase Analytics disabled.
    

    I'm almost sure to have perfectly followed the configuration tutorial at https://firebase.flutter.dev/docs/cli

    Can somebody tell me what is wrong ?

    Thanks.

  • david_caruso
    david_caruso over 2 years
    Since I do not have enough reputation, I could not comment on @Aliyu Yisa's answer, I had to post. I already know that this is not an answer, thanks.
  • PJP
    PJP over 2 years
    When linking to another document use something more descriptive than "this". Summarize where the link is going so people know if they want to click. "Don't use "click here" as link text" is a good article.
  • Krishna Shetty
    Krishna Shetty about 2 years
    When will Analytics supported for Dart-only Firebase initialization? For me, only Dart-only Firebase initialization works, manual initialization has issues. So I am not able use Analytics now
  • Aliyu Yisa
    Aliyu Yisa about 2 years
    Yes, I understand it's a bit confusing. As at the time I wrote that, I had to use manual initialisation to be able to use Analytics. The "recommended" way doesn't support all the plugins yet. Also, it seems Analytics is now supported.