【问题标题】:Google App ID is missing Firebase Analytics disabledGoogle 应用 ID 丢失 Firebase Analytics 已禁用
【发布时间】:2021-02-27 01:36:24
【问题描述】:

我正在开发一个 Ionic APP。 我的 google-services.json 位于根文件夹中。 但是有消息:

缺少 google_app_id。 Firebase 分析已停用。看 goo.gl/NAOOOI

我的代码是这样的:

this.firebaseAnalytics.logEvent('page_view', {page: "home"})
        .then((res: any) => console.log(res))
        .catch((error: any) => console.error(error));

我导入

导入 { FirebaseAnalytics } 从 '@ionic-native/firebase-analytics/ngx';

作为提供者。 我该如何解决这个问题?

【问题讨论】:

    标签: firebase ionic-framework firebase-analytics ionic-native


    【解决方案1】:

    我将我的 google-services.json 复制到 android/app 文件夹。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-11
      • 2020-11-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多