【问题标题】:Is it possible to use Firebase Cloud Messaging Android notifications without the analytics part?是否可以在没有分析部分的情况下使用 Firebase Cloud Messaging Android 通知?
【发布时间】:2018-08-20 17:20:28
【问题描述】:

我在 Cordova 应用程序中使用 phonegap-plugin-push 来管理推送通知。我有一个 google-services.json 文件,其中包含接收推送通知所需的所有信息,它运行良好。

我的问题是 Google Firebase Analytics 跟踪器已打包在我的应用中,即使我不想使用此分析工具。我试图删除 google-services.json 文件的 services 部分:

{
    "project_info": {
        "project_number": "xxxxxxxxxxxxx",
        "firebase_url": "https://abc.firebaseio.com",
        "project_id": "abc",
        "storage_bucket": "abc.appspot.com"
    },
    "client": [
        {
            "client_info": {
                "mobilesdk_app_id": "x:xxxxxxxxxxxx:android:xxxxxxxxxxxxxxxx",
                "android_client_info": {
                    "package_name": "..."
                }
            },
            "oauth_client": [
                {
                    "client_id": "...",
                    "client_type": 3
                }
            ],
            "api_key": [
                {
                    "current_key": "..."
                }
            ],
            "services": {
                "analytics_service": {
                    "status": 1
                },
                "appinvite_service": {
                    "status": 1,
                    "other_platform_oauth_client": []
                },
                "ads_service": {
                    "status": 2
                }
            }
        }
    ],
    "configuration_version": "1"
}

我希望从我的配置文件中删除这些服务会禁用它们,但我重建了我的应用程序并且跟踪器仍然存在。

我没有找到关于每个服务的 status 键的任何文档。我尝试将它们设置为0,但它并没有改变任何东西。

这就是为什么我想知道是否甚至可以使用 Firebase Cloud Messaging 在 Android 设备上获取通知,但不使用 Firebase Analytics。我不想跟踪我的用户以获得一些分析,只是向他们提供一些推送通知。

【问题讨论】:

    标签: android cordova firebase cordova-plugins phonegap-plugins


    【解决方案1】:

    不,你不能把它们弄下来。

    默认情况下,firebase 会将一些常见的 firebase 分析集成到您的应用中,您可以在 firebase 分析控制台中看到这些分析。 如果您不想跟踪进一步的自定义分析,这取决于您。

    希望你能明白。

    【讨论】:

      猜你喜欢
      • 2017-03-04
      • 2016-05-26
      • 1970-01-01
      • 2014-05-29
      • 2012-02-23
      • 1970-01-01
      • 1970-01-01
      • 2021-10-11
      • 1970-01-01
      相关资源
      最近更新 更多