Skip to content Skip to sidebar Skip to footer

Firebase Help : Avoid New Id On New Push

Pushing Data Like This: myDataRef.push({name : name, text: text}); I don't want every Push to create '-KGD************' entry. I want to add data anonymously, I want all data lik

Solution 1:

If you use Update() it won't generate a unique ID every time but just update the data at that location. Like this :

myDataRef.update({name : name, text: text});

Post a Comment for "Firebase Help : Avoid New Id On New Push"