Reputation: 198
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
implementation 'com.firebaseui:firebase-ui-auth:5.0.0'
I have added SHA 1 and SHA 256 to my Firebase console
The only Login methods available are a. Email b. Google
This app is not going into Google Play store
There is no Google Play Login option
I'm not connecting my app to the PlayStore.
I have re-downloaded google-services.json file.
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.
Upvotes: 1
Views: 1638
Reputation: 198
I finally Solved the issue with these steps:
I followed the Firebase doc [Easily add sign-in to your Android app with FirebaseUI ][1]
I grant permissions for network
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Step 5: Worki
I downloaded a newer google-services.json file
I rebuild the project
[1][https://firebase.google.com/docs/auth/android/firebaseui]
Upvotes: 1