I have this issue where every time when create a new user account, it replace the current user that is already signed in.
Asked
Active
Viewed 48 times
-1
-
you need to use `push()` – Pavneet_Singh Oct 25 '17 at 15:28
-
When you create a new user with the Firebase Android SDK, that user is immediately authenticated and any existing authentication session is terminated. See https://stackoverflow.com/questions/37517208/firebase-kicks-out-current-user – Frank van Puffelen Oct 25 '17 at 17:04
1 Answers
0
you should use push() method. Push is creating new id for every entry so data cannot be overwritten.

Ivan Bošnjaković
- 401
- 1
- 3
- 12