How do I get my app logged in after waxing?
Ex: I logged in once and every time I start the application again it is already logged in.
How do I get my app logged in after waxing?
Ex: I logged in once and every time I start the application again it is already logged in.
According to the Manage Users on Firebase documentation, the recommended way to identify the user connected is to call the getCurrentUser()
method. If no user is logged in, getCurrentUser()
returns a null value.
Example:
FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
if (user != null) {
// Usuário está logado
} else {
// usuário não está logado
}