简体   繁体   中英

Is there any way to skip the sign-in window once the user has signed in once using Firebase?

I am creating a simple text messaging app using Firebase and Android Studio (Java), and I have used Phone number based sign-in in the app. But it is quite irritating to sign in every time I open the app. Is there some way I can skip the sign-in window, and directly go to the MainActivity using some token-based verification after first sign-in, or using some in-built method? (If this question has been answered, I'll be glad to see that.)

I researched and tested my app a bit, and I found the answer to why was this happening. Every time you rebuild your app, the authentication gets revoked, as your data is cleared. But if you do not rebuild your app, and try to reopen it, it will check if you already have signed-in before (if you have set this up, in my case it was) and if you have set that up, you will directly land up to the View that your Login View takes you to, without getting to the Login View again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM