Android Question How to Download google-services.json

josejad

Expert
Licensed User
Longtime User
From the setup page

1605537396195.png
 
Upvote 0

eps

Expert
Licensed User
Longtime User
Yep - was just about to say - click on the cog - Project Settings and it should be there (as above really) but Cog location may depend on your Browser, etc..
 
Upvote 0

AndroidMadhu

Active Member
Licensed User
yes.. I have downloaded google-services.json.
But during compilation I am facing error :
1605538496156.png


Below is my Manifest file details :

B4X:
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
CreateResourceFromFile(Macro, FirebaseAnalytics.Crashlytics)
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)

The below is the google-services.json file details :

B4X:
{
  "project_info": {
      "project_number": "758629832650",
      "firebase_url": "https://mylocation-83ce8.firebaseio.com",
      "project_id": "mylocation-83ce8",
      "storage_bucket": "mylocation-83ce8.appspot.com"
  },
  "client": [
      {
          "client_info": {
              "mobilesdk_app_id": "1:758629832650:android:b0cedd75c0c3a545042133",
              "android_client_info": {
                  "package_name": "com.MyLocation"
              }
          },
          "oauth_client": [
              {
                  "client_id": "758629832650-s2s6l29efvvefao146ep2riqpjhnmvik.apps.googleusercontent.com",
                  "client_type": 3
              }
          ],
          "api_key": [
              {
                  "current_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
              }
          ],
          "services": {
              "appinvite_service": {
                  "other_platform_oauth_client": [
                      {
                          "client_id": "758629832650-s2s6l29efvvefao146ep2riqpjhnmvik.apps.googleusercontent.com",
                          "client_type": 3
                      }
                  ]
              }
          }
      }
  ],
  "configuration_version": "1"
}
B4X:

Our Project name in B4A is MyLocation.

Am I doing any mistake? Please advice

Thanks
 
Upvote 0

AndroidMadhu

Active Member
Licensed User
It is MyLocation in B4A. But when I am trying to register the App at firebase I have provided com.MyLocation as firebase is not accepting any value starting without com
 
Upvote 0
Top