GCM and Google Analytics integration together in google-services.json file using different google account?

你。 提交于 2019-12-10 18:48:21

问题


I have to integrate GCM and Google Analytics in same app.so first we need to get the google-services.json configuration file for that.well, assume that i have two google a/c. imagine it as gcm@gmail.com and analytics@gmail.com.i need to create google anaytics property using analytics@gmail.com and Google Cloud Messaging configuration using gcm@gmail.com so how i can make the google-services.json file for that ? I know to create it using same google account for both GCM & Analytics but ain't aware about the scenario i have explained.someone help me out please.you can see below i have generated Google Analytics configuration file using one a/c, now i have to merge the details of GCM to the json.how it can be as the gmail a/c is different ?

{
  "project_info": {
    "project_id": "xx-xx",
    "project_number": "xxx",
    "name": "xx"
  },
  "client": [
    {
      "client_info": {
        "mobilesdk_app_id": "1:xxxxxx:xxxxx:xxxxxxx",
        "client_id": "android:xx.xx.xx",
        "client_type": 1,
        "android_client_info": {
          "package_name": "xx.xx.xx"
        }
      },
      "oauth_client": [],
      "api_key": [],
      "services": {
        "analytics_service": {
          "status": 2,
          "analytics_property": {
            "tracking_id": "UA-xxxxxxxx-x"
          }
        },
        "cloud_messaging_service": {
          "status": 1,
          "apns_config": []
        },
        "appinvite_service": {
          "status": 1,
          "other_platform_oauth_client": []
        },
        "google_signin_service": {
          "status": 1
        },
        "ads_service": {
          "status": 1
        }
      }
    }
  ],
  "client_info": [],
  "ARTIFACT_VERSION": "1"
}

来源:https://stackoverflow.com/questions/34942242/gcm-and-google-analytics-integration-together-in-google-services-json-file-using

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!