I have begin to use Firebase but my experience is terrible.
I cannot sign out user.
I have tried different things and spend all my 4 days to figure out how to si
I also have this problem, right now, the LogoutBtn is inside a drawer, like this:
case R.id.initiates_logout:
if(FirebaseAuth.getInstance().getCurrentUser()!=null){
new AlertDialog.Builder(this)
.setTitle("Text1")
.setMessage("Text2")
.setIcon(android.R.drawable.ic_dialog_alert)
.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
FirebaseAuth.getInstance().signOut();
LoginManager.getInstance().logOut();
}})
.setNegativeButton(android.R.string.no, null).show();
}
break;
And i cant select another account after the logout.