and-nd-firebase
and-nd-firebase copied to clipboard
getCurrentUser
From.getCurrentUser(); in this part it doesn't t return any CurrentUser it give me the redline method how can i fix this ???
public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) { FirebaseUser user= FirebaseAuth_.getCurrentUser();_ if(user!=null){ //user is signed in Toast.makeText(MainActivity.this,"welcome to app",Toast.LENGTH_LONG).show(); }