0

I already develop android app with Firebase and my concern is how to make keys in javascript to push data to firebase unlikely to android it has a generated Keys the push().

I spent time with research today but it seems no luck to see one.

If you have any links that my help or suggestions, I appreciate it,Thanks.

This is the key that I mean in firebase

enter image description here In android studio you can set a key using push(). Example in android studio reference.child("Alvaniz_Infant_Info).push().setValue(myValue)

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
Cyrille Con Morales
  • 918
  • 1
  • 6
  • 21

1 Answers1

1

According to the js example in firebase realtime db doc, push() is available in js sdk too.

  var newPostKey = firebase.database().ref().child('posts').push().key;
William Chong
  • 2,107
  • 13
  • 24