Is there a way to communicate/store data to another project/application using Firebase Storage? How can I initialize my application to call another Firebase Storage Bucket?
Quota for Hosting storage Storage for your Hosting content is at no cost up to 10 GB. If you are not on the Blaze plan, and you reach the 10 GB limit of no-cost Hosting storage, you won't be able to deploy new content to your sites.
The new Firebase Storage is powered by Google Cloud Storage, giving it massive scalability and allowing stored files to be easily accessed by other projects running on Google Cloud Platform. Firebase now uses the same underlying account system as GCP, which means you can use any GCP product with your Firebase app.
Firebase Realtime Database is a NoSQL cloud database that is used to store and sync the data. The data from the database can be synced at a time across all the clients such as android, web as well as IOS. The data in the database is stored in the JSON format and it updates in real-time with every connected client.
Add Firebase to your Android project | Firebase To do so, go to your app's Firebase Console and navigate to the Storage option. From there, click on “Get Started” and follow the on-screen instructions.
Referring to this More than one Firebase Database i just tried to configure the initialization of the Firebase Storage by using
FirebaseOptions options = new FirebaseOptions.Builder()
.setApiKey("AI...j0")
.setApplicationId("1:5...e0")
.setDatabaseUrl("https://myapp.firebaseio.com")
.build();
FirebaseApp secondApp = FirebaseApp.initializeApp(getApplicationContext(), options, "second app");
//storage
FirebaseStorage storage = FirebaseStorage.getInstance(secondApp);
StorageReference storageRef = storage.getReferenceFromUrl("gs://.......");
While DreamBigAlvin's workaround still works, a simpler way is now built-in into the Firebase SDK:
StorageReference storageReference =
FirebaseStorage.getInstance("gs://my-custom-bucket")
.getReference();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With