Firebase Add A New Node
How to put these nodes inside a users node and make another one to store posts. My database reference: databaseReference.child(user.getUid()).setValue(userInformations);
Solution 1:
You need to use the following code:
databaseReference.child("Users").child(user.getUid()).setValue(userInformations);
This means that all those objects will be hosted within the Users
node. Please the new child("Users")
added. In the same way you need to use for the posts.
Post a Comment for "Firebase Add A New Node"