使用谷歌分析与fcm云消息传递

时间:2017-06-13 10:20:34

标签: android google-analytics

我正在使用FCM实施谷歌云消息传递,并希望与其他应用程序集成。该Android应用程序使用谷歌分析并使用 google-services.json

{
  "project_info": {
    "project_number": "911170071927",
    "project_id": "b-ye-biyeta"
  },
  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "testID",
        "android_client_info": {
          "package_name": "test.test"
        }
      },
      "oauth_client": [],
      "api_key": [
        {
          "current_key": "current_key"
        }
      ],
      "services": {
        "analytics_service": {
          "status": 2,
          "analytics_property": {
            "tracking_id": "UA-99587937-4"
          }
        },
        "appinvite_service": {
          "status": 1,
          "other_platform_oauth_client": []
        },
        "ads_service": {
          "status": 1
        }
      }
    }
  ],
  "configuration_version": "1"
}

。但我在我的FCM项目中有一个 google-services.json 文件。

{
  "project_info": {
    "project_number": "133757610052",
    "firebase_url": "https://myfirstfcmproject-6e8d2.firebaseio.com",
    "project_id": "myfirstfcmproject-6e8d2",
    "storage_bucket": "myfirstfcmproject-6e8d2.appspot.com"
  },
  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "1:133757610052:android:98ebe0f1cafb29f6",
        "android_client_info": {
          "package_name": "com.example.akash.myapplication"
        }
      },
      "oauth_client": [
        {
          "client_id": "133757610052-5qctmaccs09p8g42nengtm7mt60n167u.apps.googleusercontent.com",
          "client_type": 3
        }
      ],
      "api_key": [
        {
          "current_key": "AIzaSyAegW-Owdx0ReDCjx3S3iP1ye8r8AYAAFs"
        }
      ],
      "services": {
        "analytics_service": {
          "status": 1
        },
        "appinvite_service": {
          "status": 1,
          "other_platform_oauth_client": []
        },
        "ads_service": {
          "status": 2
        }
      }
    }
  ],
  "configuration_version": "1"
}

两者都需要放在同一个模块中。如何将 google-services.json 文件放在同一个具有相同Google帐户的应用程序中。

由于

0 个答案:

没有答案