How can I create a reference to an auto-generated child location in firebase realtime database and firestore? I am able to call push()
in Android looking for the equivalent in iOS.
CodePudding user response:
In Swift you can use childByAutoId()
to get the same result as push()
in the other languages.
Also see the Firebase documentation on adding item to a list of data, and the usage of childByAutoId
in Firebase's quickstart examples.