Android 将google analytics与fcm云消息一起使用
我正在使用FCM实现谷歌云消息,并希望与另一个应用程序集成。该android应用程序使用谷歌分析并使用谷歌服务.jsonAndroid 将google analytics与fcm云消息一起使用,android,google-analytics,Android,Google Analytics,我正在使用FCM实现谷歌云消息,并希望与另一个应用程序集成。该android应用程序使用谷歌分析并使用谷歌服务.json { "project_info": { "project_number": "911170071927", "project_id": "b-ye-biyeta" }, "client": [ { "client_info": { "mobilesdk_app_id": "testID", "an
{
"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文件放在具有相同谷歌帐户的同一应用程序中
谢谢试试这个试试这个