我必须在同一个应用中集成GCM和Google Analytics。首先我们需要获取that.well的google-services.json
配置文件,假设我有两个google a / c。想象一下 gcm@gmail.com 和 analytics@gmail.com 。我需要使用 analytics@gmail.com 创建google anaytics属性,使用 gcm@gmail.com 进行Google Cloud Messaging配置,以便我如何制作google-services.json
文件?我知道使用相同的Google帐户为GCM和&分析但不知道我已经解释过的场景。请大家帮帮我。你可以看到下面我使用一个a / c生成了Google Analytics配置文件,现在我必须将GCM的详细信息合并到json.how它可以像gmail a / c不同吗?
{
"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"
}