Home > Enterprise >  What is the equivalent of firebase realtime database push in iOS Swift?
What is the equivalent of firebase realtime database push in iOS Swift?

Time:11-16

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.

  • Related