I need to integrate GCM and Google Analytics into the same application. First we need to get google-services.json
configuration file for this. Suppose I have two google a / c. imagine that these are gcm@gmail.com and analytics@gmail.com . I need to create the google anaytics property using analytics@gmail.com and Google Cloud Messaging Configuration using gcm@gmail.com , so how can I make google-services.json
for this? I know to create it using the same google account for GCM and Analytics, but I donβt know about the scenario that I explained. Someone will help me. You can see below. I created a Google Analytics configuration file using one a / c, now I have to combine the GCM details with json.how, can this be how 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" }
source share