Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple Firebase Storage Buckets in One App

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.

like image 341
bholben Avatar asked Feb 11 '18 00:02

bholben


1 Answers

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)
like image 110
iUser Avatar answered Jan 03 '23 00:01

iUser