im struggling while im coding my first app on android device using Android Studio. I used Firebase for the auth. I follow every steps, and my app doing well while logging in and logging out.
The problem is that the first time i press on login, a popup let me choose which google account i can use. But after that, when i log out and try to login again, the app connect automatically with the first account we chosen and i cant choose another account again.
I notice that if i go into my phone and clear cache and data about the app, now i can choose which google account use for the app.
I google really much through the internet and found this one
Google Firebase sign out and forget user in Android app
But over there they talk about some "googleapiclient" or "Auth.GoogleSignInApi.signOut(mGoogleApiClient)".
But in the tutorial i see no variables named mGoogleApiClient, so i thought that maybe that was okay for a old version, and im now working on a new version?
I really struggle a lot. I dunno where to search, i dunno where im wrong.
How can i logout from my app and then, when i press login, be able to choose again and again a different account? Please help, thx a lot.