swift - 使用swift在互联网离线时将文件上传到firebase存储

标签 swift firebase firebase-storage

当互联网离线时,我可以使用同步数据库

Database.database().isPersistenceEnabled = true

是否可以使用 Firebase 存储?

如果是,我该怎么做?

如果没有,还有其他方法吗?

最佳答案

目前,Storage 不提供类似的功能,尽管它在我们的路线图上。这里有更多信息:https://github.com/firebase/firebase-ios-sdk/issues/147

你可以使用类似 GTMSessionFetcher 的东西,它提供了一个 useBackgroundSession标志,或内置的 NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier:

关于swift - 使用swift在互联网离线时将文件上传到firebase存储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47301175/

相关文章:

ios - 类型不匹配(Swift.Dictionary<Swift.String, Any> debugDescription : "Expected to decode Dictionary<String, Any> but found an array instead."

swift - TableView cellForRowAtIndexPath 警告

Swift - Firebase 快照到变量中

angular - Firebase Extensions Resize Images with AngularFire 后如何获取新的下载 URL?

ios - 如何使用 Swift 解决 Firebase 中的异步问题?

ios - Stripe 在 Swift 中创建用户函数

iOS:应用程序在一段时间后无法运行(Xcode 8 的并行安装)

javascript - 每天凌晨 2 点执行 Cron 作业

firebase - 如何正确更新事件流的 Firestore 查询快照?

firebase - Firebase 存储对象的下载 URL 是否永久存在?