Sign in with Google with Firebase Auth Component

howto

(Sanjay Dey) #1

The Doc part for "Sign in with Google " provided by Kodular is not complete . You need SHA1 key must.

Steps for Sign in with Google

Google Login

To enable Google Login for Firebase Authentication you need to do a few more steps.

  1. Go to the Authenticaiton Section in the Firebase Console and click on the Google Login ![Firebase Auth Google]
  2. Set the “Enable” switch to enabled

After that you need to add your SHA1 key to you app in Firebase.

Step 2
You need a software to get the SHA1 key from your app’s key store file

After that install KeyStore Explorer Software and upload your key store file in it.

After that you will ask for a password Type "android" as your keystore file password

Now copy that SHA1 key from here.

Watch full Tutorial in Hindi:

Download Sample APK:https://drive.google.com/file/d/18cFot1tOCLZLjfdT0sU819gBI9h2MhJs

Download Keystore Explorer Software: http://sanjaythedeveloper.com/how-to-do-sign-in-with-google-with-firebase-auth-component-in-kodular-the-developer-2-0/


(Carambel) #2

Great, I will try to change the login method of my app.


(SunnyTheDeveloper) #3

Showing build error.I am sharing screenshot here


Firebase Authentication Bug
(Gameing live) #4

what if i want my user to signup with google and sign in for the first time with google and afterwords application automatically get user sign in from next time onward please help me


(Sanjay Dey) #5

Take a if else condition in screen initialize use is sign in block with that if else condition if its return true open another screen screen name


(Riccardo Antonucci) #6

everything works except the logOut;
it works if I log in with firebase authentication but it does not work if I log in with google. How can I log out if I want to change my account?
Thanks if anyone can help me


(SunnyTheDeveloper) #7

Can you share a screenshot?


(Riccardo Antonucci) #8

ok, actually after several tests I realized that Firebase_Authentication.logout also works with Firebase_Authentication.Google SignIn; the only problem is that when I run the LogIn again I no longer have the possibility to choose which account to insert, I access directly to the one already memorized. The only way to get it, (in addition to uninstalling and reinstalling the app), is to clear the cache and delete the app data. To get this I found a component that clears the cache, but unfortunately alone is not enough, I need the way to simulate “delete app data” … I have already tried to run “TinyDb. Clear all”, but anything …


(Sanjay Dey) #9

You need to clear app data from settings>app settings > choose that app & clear data


(Riccardo Antonucci) #10

yes I know … is that I wanted to make it easier for users of the app, combining data cleaning to log out, to give him the ability to change accounts without having to go in the settings of the app to clean the data. …