How to check for a phone auth user in Android?
问题 How to modify this onStart() method to get my separate Phone auth user database? @Override protected void onStart() { super.onStart(); FirebaseAuth firebaseAuth = FirebaseAuth.getInstance(); if (firebaseAuth.getCurrentUser() != null) { if(what condition required to check for phone auth){ startActivity(new Intent(EnterAs.this, UI_Main_User.class)); finish(); } else { for email auth users } } 回答1: You can do that by calling UserInfo's getProviderData() method on the FirebaseUser object, to get