I am currently trying to lure the firebase cloud messaging service for the Android unit test, and I am using firebase-server , a web socket emulator for firebase.
Typically, the AndroidStudio tool generates a file json
based on the firebase client account information. The problem is that I use a firebase server, and I'm not sure what information I should change in json
, I changed my API key for 1
, as indicated in the firebase server problem , but what should I do for the application information and project information ?
Here is my example json
for google-services
:
{
"project_info": {
"project_number": "************",
"firebase_url": "************",
"project_id": "***********",
"storage_bucket": "***********"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "**********",
"android_client_info": {
"package_name": "ca.project.my"
}
},
"oauth_client": [
{
"client_id": "***********",
"client_type": 1,
"android_info": {
"package_name": "app.ca.project.my",
"certificate_hash": "***********"
}
},
{
"client_id": "***********",
"client_type": 3
}
],
"api_key": [
{
"current_key": "1"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 2,
"other_platform_oauth_client": [
{
"client_id": "************",
"client_type": 2,
"ios_info": {
"bundle_id": "app.ca.project.my",
"app_store_id": "********"
}
},
{
"client_id": "************",
"client_type": 3
}
]
},
"ads_service": {
"status": 2
}
}
}
],
"configuration_version": "1"
}
firebase .
firebase-server
firebase-server
$ npm install firebase-server -g
$ firebase-server