Firebase AuthUi error "Code:10, message:10". [No Google Play Option]

Firebase AuthUi Google Sign In Code:10, message:10:

I use firebase auth-ui to sign in with google. I followed the Google Codelabs tutorial (which was updated 15 September 2021) but no Login method is working.

Google firebase Login Tutorial

it toasts

Code:10, message:10:

Some Highlights to note

  1. I have this dependency

implementation 'com.firebaseui:firebase-ui-auth:5.0.0'

  1. I have added SHA 1 and SHA 256 to my Firebase console

  2. The only Login methods available are a. Email b. Google

  3. This app is not going into Google Play store

  4. There is no Google Play Login option

  5. I'm not connecting my app to the PlayStore.

  6. I have re-downloaded google-services.json file.

  7. I read this thread Firebase UI authentication with google fails with message (code:10 message:10) But the solution requires Google-play-console. As I said, this is a tutorial project and having an account on play console requires $25 - I shouldn't be paying $25 to test tutorial codes.


Solution 1:

I finally Solved the issue with these steps:

  1. I followed the Firebase doc [Easily add sign-in to your Android app with FirebaseUI ][1]

  2. I grant permissions for network

<uses-permission android:name="android.permission.INTERNET" /> 

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Step 5: Worki
  1. I downloaded a newer google-services.json file

  2. I rebuild the project

[1][https://firebase.google.com/docs/auth/android/firebaseui]