-
Notifications
You must be signed in to change notification settings - Fork 2.3k
🔥 Storage does not support App as parameter #1926
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 👋, this issue has been automatically marked as stale because it has not had activity for quite some time. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information. |
@Salakar This is a tangent but they just added multi-app support to remoteconfig - not sure if that is in v6 (you can see it in the android sdk release notes and they link here: https://firebase.google.com/docs/reference/android/com/google/firebase/remoteconfig/FirebaseRemoteConfig#getInstance(FirebaseApp) ) For the specific issue the API for storage does seem to support multi-app so it seems like this should work, though @AlexandreMaistret may have learned something in the time after filing the issue and just isn't responding to the stale-bot ? |
Unfortunately @mikehardy I didn't find any solution for this. I am just using several databases for one bucket storage. |
I think this is valid then, and more over I believe @Salakar is right.this.moment. working on storage v6 so it might be easy to investigate while he's got all the right tools laid out on the workbench |
The correct usage is as demonstrated in Example 2 & 3 here: https://invertase.io/oss/react-native-firebase/v6/storage/reference/module Multiple apps work in v5 this way, multi-buckets support however only lands in v6 - have just finished the storage re-write about an hour ago (just working through android CI being a PITA) |
Closing as v6 Cloud Storage PR has landed. Will publish an alpha release later today. Thanks again 👍 |
Issue
Hi !
I am using several databases and buckets for my mobile application.
I am initializing my App with :
and then for using this particular database I am using :
which works like a charm, but when I want to use the bucket also initialize with the same database I am using:
And I have an error
Error: storage does not support a URL or region as a param, please pass in an app.
, which I don't really understand why since I put aconsole.log
for the constantapp
, and it is a Firebase App.I also tried
but the application crashed and said
The storage uri cannot contain a path element.
Project Files
Android
android/app/build.gradle
:Environment
8.1
React Native
version: 0.55.4React Native Firebase
library version: 5.1.1Firebase
module(s) you're using that has the issue:TypeScript
?ExpoKit
?The text was updated successfully, but these errors were encountered: