aminot
aminot

Reputation: 1

Unique identity issue on Firebase

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

Answers (1)

Alex Mamo
Alex Mamo

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

Related Questions