我必须将 GCM 和 Google Analytics 集成到同一个应用程序中。所以首先我们需要获取google-services.json
配置文件。好吧,假设我有两个谷歌空调。把它想象成[电子邮件受保护] /cdn-cgi/l/email-protection and [电子邮件受保护] /cdn-cgi/l/email-protection.我需要使用创建谷歌分析属性[电子邮件受保护] /cdn-cgi/l/email-protection和 Google Cloud Messaging 配置使用[电子邮件受保护] /cdn-cgi/l/email-protection那么我怎样才能使google-services.json
为那个文件?我知道要为 GCM 和 Analytics 使用相同的 google 帐户创建它,但不知道我已经解释过的情况。请有人帮助我。您可以在下面看到我现在使用一个 a/c 生成了 Google Analytics 配置文件我必须将 GCM 的详细信息合并到 json。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"
}