Does the childByAutoId functionality, available in Firebase iOS SDK, exist in Android?
Basically in iOS I'm creating that id like:
let key = getAddPlayersQueueRef().child("tasks").childByAutoId().key;
addPlayersQueueRef?.child(byAppendingPath: "tasks/\(key!)").setValue(task);
Which produces a key like -KYJqaljjDG0Vp2L_cW5
.
Can I do that on Android? I don't see any similar method on the documentation.
On Android (and JavaScript) that method is called push()
.
You can easily see this when you compare the documentation on adding items to lists between iOS and Android.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With