I trying check user if logged already or not but the problem this method getLastSignedInAccount return not null rather null before press login button
if (GoogleSignIn.getLastSignedInAccount(SplashScreen.this) != null) {
Toast.makeText(this, "google", Toast.LENGTH_SHORT).show();
}
if (AccessToken.getCurrentAccessToken() != null) {
Toast.makeText(this, "facebook", Toast.LENGTH_SHORT).show();
}
I never sign in yet then should be return null , the facebook has same problem