gpt4 book ai didi

swift - swift 3 中的 Firebase 持久性

转载 作者:可可西里 更新时间:2023-11-01 01:21:51 24 4
gpt4 key购买 nike

根据 swift 的 firebase 官方文档,我们应该使用以下行在 iOS 中启用持久性。

Firebase.defaultConfig().persistenceEnabled = true

但是如果我们在 swift 3.0 中使用上面的行,它会出错。

Error image

知道如何在 swift 3.0 中启用持久化吗?

最佳答案

尝试以下操作:

FIRDatabase.database().persistenceEnabled = true

关于swift - swift 3 中的 Firebase 持久性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43464087/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com