-2
When the user leaves the account the application closes.
The problem arose when I changed the rules of the Altime from that
{
"rules": {
".read": true,
".write": true
}
}
for that reason
{
"rules": {
".read": "auth.uid != null",
".write": "auth.uid != null"
}
}
LOG OUT BHUTAN
button5.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
FirebaseAuth.getInstance().signOut();
Intent intent = new Intent(getActivity(), MainActivity.class);
startActivity(intent);
getActivity().finishAffinity();
}
});