【问题标题】:What is the equivalent of firebase realtime database push in iOS Swift?iOS Swift 中的 firebase 实时数据库推送等价物是什么?
【发布时间】:2021-12-26 15:44:30
【问题描述】:

如何在 firebase 实时数据库和 firestore 中创建对自动生成的子位置的引用?我可以在 Android 中调用 push() 在 iOS 中寻找等效项。

【问题讨论】:

    标签: swift firebase firebase-realtime-database


    【解决方案1】:

    在 Swift 中,您可以使用 childByAutoId() 获得与其他语言中的 push() 相同的结果。

    另请参阅 adding item to a list of data 上的 Firebase 文档,以及 Firebase 快速入门示例中的 usage of childByAutoId

    【讨论】:

      猜你喜欢
      • 2018-03-20
      • 2018-10-02
      • 2014-09-24
      • 2014-07-31
      • 1970-01-01
      • 1970-01-01
      • 2014-08-12
      • 2014-08-01
      • 1970-01-01
      相关资源
      最近更新 更多