在一个应用程序中多个Firebase存储桶 [英] Multiple Firebase Storage Buckets in One App
本文介绍了在一个应用程序中多个Firebase存储桶的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
一个应用程序可以使用多个Firebase存储桶吗?由于我们需要在初始化时配置一个应用程序以使用单个存储桶,因此我对拥有多个存储桶功能的价值有些困惑.
Is it possible for one app to use multiple Firebase Storage buckets? Since we need to configure an app upon initialization to use a single bucket, I'm a bit confused about the value of having multi-bucket functionality.
推荐答案
我遇到过同样的情况.这对我有用.希望它也可以帮助其他人:)
I have had the same situation. This worked for me. Hope it can help someone else too :)
// Add your bucket name here which is not in your GoogleService-info.plist file for your current app.
let storage = Storage.storage(url: "gs://your.storageBucketname.here")
let gsReference = storage.reference(forURL: firestoreLink)
这篇关于在一个应用程序中多个Firebase存储桶的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文