services.json file . First I download it for google integration and second is for firebase integration. Now I'm confused to use which one. Both are having different client ids.How can have single google-services.json and use it for both firebase and google integration?
What I would recommend, if you have access to the Google project but not the developer's console, is to access the Firebase Console, click "Import Google Project", and select your existing project.
This will create a new Firebase project that integrates with your existing Google project, in theory allowing you to use the same API keys, and by extension, the same "google-services.json" file.
Related
I have an Android project where I am using Google Cloud authentication service, where I downloaded the google-services.json file and everything is working.
Now that using Firebase's Dynamic Link service, where it asks to download another google-services.json file and put it in the same location.
I don't know how to proceed in this case, any tips?
If you are using the same project then feel free to use the last one google-services.json that it suggests downloading because it will already include your previous configuration.
You can easily check this if you compare the first and second one jsons.
Make sure that you only have this most recent downloaded config file in your app.
You can get the most recent config file for your Android app in Firebase Console at any moment.
Go to your Project settings in the Firebase console.
In the Your apps card, select the package name of the app for which you need a config file.
Click google-services.json.
I have an android app in android studio that is connected to my personal firebase account. Now i need to move, transfer or connect it to another firebase account, that is a client's property. How can i do it please?
Just replace the google-services.json.
Delete your personal google-service.json from the android project
Delete the project from the firebase console as well if you want to keep the same package name.
Create a new Firebase project using client account and add updated google-service.json in android project.
I recently released an Android App on the playstore this app is currently linked with both Google's Admob and Google's firebase for analytics, after a while I started working on an update that includes FIREBASE NOTIFICATIONS when I tried to connect firebase to the project I got this error:
Firebase
No clients were able to be added to your Firebase project for the following reasons:
An app with this package name and SHA1 is already connected to a Google project. If you have used a Google API previously, please select that project in the Connect to an existing project list.
Client Package Name: xxxxxxxxxxxxxxxxxxxxxxxxx
Client SHA1: [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
How to fix this without loosing my previous analytics stats ?
You Should Use The existing App And Include Feature For Push Notifications at Firebase console or firebase assistant in studio
As you are creating a new project in firebase assistant for push notifications but you have aldready added this app for another services it Wont use two firebase projects for Single application so Make Sure You Are Going With The Past Project which you have done for admob and then go to cloud messaging amd enable it then you will successfully connect
If any errors again i can Help
Thank you
And If You Created Aldready you can import that project into previous project but make sure that you use same firebase account
https://firebase.google.com/support/faq/
Use this link to know about importing projects
I have a number of apps in my Google console: android connected to app engine. I need to use App-Engine and Google Cloud Messaging. The procedure asks me to choose App name and android package name. Then it says
Services will be added to your existing project in the Google Developers Console.
How does it know which project to add the service to? I can't seem to find where to tell it which project to use. For sure it keeps attaching them (apparently) to some default project as opposed to the correct project. I know that for a fact because it is not passing the correct projectId of my app-engine backend to the google-services.json. I am not sure I should manually edit the file. So any ideas how to generate the file the correct way?
I am referring to the Configuration File
Presently I am following https://developers.google.com/cloud-messaging/android/start
App Name and package name fields are editable fields when you're trying to create a configuration file as described here
You can choose an existing project that you created in your google developer console from the dropdown or enter a new name. If no app with that name exists in your google developer console, a project with that name will be created in google developer console. Configuration file generated will have project_id, project_numberfor this project and when you will use this json file in the android app, it will use them to connect to the correct project.
I have downloaded a demo project of GSM services.
For using it, I need to install a file name Google could messaging but, it is missing from my SDK.
How can I add this file to my SDK?
New To Android
If you use GCMS (Google Cloud Messaging Services), you need to build a library project which uses Play Services and import it into your work-space.
Generally:
Install the Android SDK from this link.
Download and configure the Google Play services SDK, which includes the Google Maps Android API. You can see the setting up on this link.
Don't forget to add the required Google Play services settings in your application's manifest.
When you add the Play Services library to your project, be sure to add it with resources, as described in Setup Google Play Services SDK. The key point is that you must reference the library. Simply adding .jar file to your project won't work. You must follow the directions for referencing a library, or your app won't be able to access the library's resources, and it won't run properly.
You can get the full instructions from Setting Up Google Play Services.