Skip to content Skip to sidebar Skip to footer

Why My Firebase Realtime Database Is Only Saving 1 User

Why my Realtime Database is not adding a new data, instead it is replacing just a new data. It must be adding not replacing. This is my code for adding a new user: public void addN

Solution 1:

Firebase allows to store information of multiple users in firebase realtime database but only as authenticated users. I think you have not signout from your first user. That is why, its saving only one user. Have you created a signout button and have you done something like this :

FirebaseAuth mAuth = FirebaseAuth.getInstance();
mAuth.signOut();

Post a Comment for "Why My Firebase Realtime Database Is Only Saving 1 User"