Firebase push () on iOS

Is there any equivalent of the Firebase.push () method for the iOS API that is available in the Javascript or Java API?

I could not find it in the API link for iOS.

I need the data to be moved to a new child location based on the timestamp (I prefer the server timestamp of the server) and return this link in the block.

+4
source share
1 answer

Yes! We renamed it childByAutoId to be more compatible with iOS naming conventions, but it behaves just like ref.push (). If you want to set the data (equivalent to ref.push (data)), you can do[[ref childByAutoId] setValue:data]

+16
source

Source: https://habr.com/ru/post/1531008/


All Articles