Reputation: 1
When saving to Firebase with the push method, unique id is occurring.
How do I make it not happen?
(I have little English language. It is very good if you tell it simple.)
Upvotes: 0
Views: 51
Reputation: 138824
Just use setValue()
method directly on the reference like this:
DatabaseReference rootRef = FirebaseDatabase.getInstance().getReference();
rootRef.child("Users").child("name").setValue("John");
But I recommend you reading Firebase official doc.
Upvotes: 3