-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Unable to upload to multiple buckets #775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello, currently the string version of the URL doesn't work in RNFirebase. You can however pass the App instance you want. |
What is the best way to extend the current Creating a completely new |
Unfortunately I'm not a mobile app developer but I'm doing my best in trying to debug the issue. Some of my thoughts: I believe that the only way to support multiple buckets is by implementing the option to pass bucket name in the storage constructor: |
Any news on this? Would be really cool to do something like:
|
Thanks for reporting this issue. This is something we're going to add support for. We're aware that Storage has fallen behind slightly on React Native Firebase and would like to bring it up to speed again. I will close this issue for now and track it as well as other issues collectively over on the Storage improvements proposal to be addressed in a future release. See #1260 |
Hey @FacuAcosta @k0ff33 @olegwn - just thought you'd like to know the v6 storage re-write PR is up and well into dev, which includes many improvements including multi-bucket support 🎉 PR & Changelog: #2043 |
I am getting this same error. I am on react-native-firebase v 5.6.0. Have tried to upgrade to @latest but this seems to be the latest. In my podfile I have: pod 'Firebase/Storage', '~> 6.13.0' React-native version 0.61.5. I've tried this
and this
I know it says upgrade to v6 but not sure why npm install @latest is only doing v5.6.0 |
Ah - that is because when RNFB moved from v5 to v6 it also changed packaging style, so |
Ok. Thanks. So do I run npm install --save react-native-firebase/storage@6?
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Mike Hardy <[email protected]>
Sent: Wednesday, January 15, 2020 5:06:23 PM
To: invertase/react-native-firebase <[email protected]>
Cc: William Goodhew <[email protected]>; Comment <[email protected]>
Subject: Re: [invertase/react-native-firebase] Unable to upload to multiple buckets (#775)
Ah - that is because when RNFB moved from v5 to v6 it also changed packaging style, so @latest of the package react-native-firebase is 5.6.0, but if you want v6 you install different packages - now they look like @react-native-firebase/app + @react-native-app/storage etc (modules all split out)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#775?email_source=notifications&email_token=AH2KFFLZ6UZI4GFHCOAAJDLQ547A7A5CNFSM4ENGCTC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJBBWMI#issuecomment-574757681>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AH2KFFMWGRVLPA42MZBLNJTQ547A7ANCNFSM4ENGCTCQ>.
|
I believe you'd want this doc: https://invertase.io/oss/react-native-firebase/migrating-to-v6 |
setting bucket in storage is not working. I already migrated to v6. I tried storage('gs://bucket_name') but it's not working. |
Same for me. Error: "firebase.storage(app)" arg expects a FirebaseApp instance or undefined.
|
Still getting this error, using How are you supposed to use non-default buckets? |
I finally got this to work by doing
|
Hi, we are using multiple buckets on our app. Since there is no documentation for the Storage on the Docs we are using the official one provided by Google. They say in there that for using a different bucket and not the default one, we need to use this function:
var storage = firebase.app().storage("gs://my-custom-bucket");
While doing this, I get a red screen saying that
Invalid FirebaseApp instance passed to firebase.storage(app <--).
Looking at the source code, It seems that this option is not available right now on RNFirebase and It's a needed one.I tried to use other app instance changing the bucket and sending it into the storage() function, but since the user is logged into the other app instance, we are not able to upload files to that bucket.
Is there a workaround for doing this?
The text was updated successfully, but these errors were encountered: