No clients were able to be added to your Firebase project - android

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

Related

How to use a Google Cloud Project and Different Firebase Project Together For a Flutter App

Goal
I am currently working for a company where I need to access the People API from Google Cloud (for which I have set up OAuth) and also utilize Firebase's Analytics
Problem
I get this error:
google_sign_in plugin:PlatformException(sign_in_failed,com.google.android.gms.common.api.ApiException: 10: , null)
when I try to get access to the People API via OAuth.
This happens only when I specify the dependencies for google play services in the gradle files (app and project level) [Check SDK Instructions for Firebase Android Project.].
Things I tried
Giving all of the possible SHA keys for the app in the Google Cloud's credentials tab from this answer
Given support email for OAuth
Tried getting rid of the google play services dependencies from gradle files, this did solve the google_sign_in issue but Firebase Analytics stopped working and I get this error:
Missing google_app_id. Firebase Analytics disabled. See shortened_link_that_I_cant_post
Conclusion
Right now I am stuck with using only one of the two services. I removed Firebase from my Project and my App from Firebase console for now.
Packages Concerned
google_sign_in: ^5.4.3: https://pub.dev/packages/google_sign_in
extension_google_sign_in_as_googleapis_auth: ^2.0.7: https://pub.dev/packages/extension_google_sign_in_as_googleapis_auth
googleapis: ^10.0.0: https://pub.dev/packages/googleapis
firebase_core and firebase_analytics

Connect an android studio proyect to another firebase account

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.

Firebase console sdk setup showing as unfinished

I created an android application on Android studio 3.4.2 and integrated Firebase using the firebase assistant tool provided on Android studio.There is no problem with using the features of Firebase on the app but when going to the developer's console of Firebase and going to the project overview, it appears as if the the sdk setup is not finished ,I tried following the sdk setup steps provided and the setup won't finish at the last stage i.e, "checking if the app has communicated with our servers,you may need to uninstall and reinstall the app". I've uninstalled my app and reinstalled it but doesn't seem to be registering the app on the Firebase server.
I've tried restarting the internet, Uninstalled my app and reinstalled,made sure net connectivity are okay on both emulator and pc
Check your Firebase console projects, Is there any project with the same package name?. If there is any please remove and try again.

One Android app receives push notifications from two different Firebase project

I created two Firebase projects for the same Android app.
One for development
Other for production.
For development, I was compiling my application with my google-service.json from the dev Firebase project and now I'm compiling with the file from the production Firebase project.
The problem is I'm still receiving push notifications from the dev
project on the app I compiled with the production
google-service.json file. I checked Firebase Settings and every id I
have found are different in dev and production. So how is it
possible that I'm still receiving notifications from the dev project?
Note: I'm not using a back-end to send notifications, I'm doing everything from the Firebase console.
Thanks a lot,

Connect to Firebase failed with assistant in android studio

I want to connect my app to firebase and for that I am doing it by Firebase Assistant in android studio.
When I click on connect to firebase the following error is shown:
Firebase: Connect to Firebase failed. Please check your internet connection and try again. If errors persist, you can connect manually at https://console.firebase.google.com
SocketTimeoutException: Could not obtain an OAuth2 access token.: connect timed out
Note: I am properly connected with internet and my android studio is updated.
How to solve this problem?
Check ur firebase console once, It happens that the project gets created in firebase console but still it shows the error, If it is so, then go to project settings of that project and add the package name of the project in it, and then download the google-services.json file,add the json file in root project directory. Add the necessary dependencies for the feature u want to use from firebase assistant. U are all set to use firebase now!!..Hope it helps..
This is happening because you have exceeded your limits of making new projects in Firebase Console.
This is how your console window will look like when you try to make a new project from Firebase Console itself.
It says:
You've reached the project limit for your account. You can add Firebase to an existing project or request an increased limit.
Solution:
1) One solution is to add your application in a pre-built project of yours (if you haven't deleted all of your project and if you haven't exceeded your app limits)
2) The second solution is to REQUEST AN INCREASE in your project limits by clicking on the option below the error.
After requesting for an increase and giving a good reason for why you want an increase, you will get your increased projects limit soon and then you will be able to explore unmatchable features of the great Firebase again.
I realized that the Firebase Assistant from the sidebar is not using the proxy settings from Android Studio. So the Firebase Assistant might fail even if the Android Studio can reach the internet.
Didn't find the reason but connecting to a mobile hotspot solved the problem temporarily.
This is wired but my issue was solved when I made sure I was signed into the same Google account in the browser and Android studio :
Google Play Console
Google Developer Console
Firebase Console
Please use the latest library for firebase
implementation 'com.google.firebase:firebase-messaging:15.0.0'
please follow this guide if counter another issue
https://firebase.google.com/docs/android/setup

Categories

Resources