Reading Firebase's documentation it says that
Firebase Storage provides secure file uploads and downloads for your Firebase apps, regardless of network quality.
But I tried to start an upload without connection and then reconnecting, and it didn't work.
How do I enable offline capabilities for Firebase Storage ? (I already have FIRDatabase.database().persistenceEnabled = true)
Note: I'm implementing an app for iOS in Swift.
Here is the code I'm trying:
FirebaseAPI.storageRef.child("images/test.jpg").putFile(imageURL)
Related
This is not a problematic question, it was asked because just wanted to know what's actually going on behind it, I can't find an answer in any documentation.
When i open the app without internet it shows the data from firebase, i try to restart then it also shows, i try to clear the cache but it shows the data like it shows from the local database, Why is this happening, is there a built-in local storage or something in Firebase Flutter?
Firestore SDKs cache any data that they've recently seen, as well as any pending writes from the local client that haven't been synchronized to the server yet. On mobile clients (iOS and Android) this cache is enabled by default, while on web you can enable it with an API call.
For more on this, see the Firebase documentation on accessing Firestore data while you're offline.
I have a backend in golang and was wondering how I can connect to Firebase storage to create/delete buckets and add/delete files. Can I use the Admin sdk. I found the client storage lib in golang for google cloud storage. Can I use that? And whats the difference between firebase storage and google cloud storage?
The app I'm working on connects to Firebase Storage Buckets via the Admin SDK, but we're using Firebase Functions in Node.js. However, it looks like the Admin SDK in Go offers the same Storage access, and it's documented (with example code in Go) here:
https://firebase.google.com/docs/storage/admin/start
I like using Admin in Firebase, because you don't have to worry about project configuration and authentication to the various services. Firebase storage is google cloud storage, but with a nice wrapper and well-integrated into other aspects of your Firebase project. You get some limitations as a trade-off for all of that convenience, but unless you run into a feature of Google Cloud that you absolutely need and doesn't exist in Firebase, I'd stick with the Firebase (and Admin) version.
I am trying to create a simple notetaking app(ios/android) with the ability to save text and pictures to cloud storage (am using firebase).
so the prototype works fine except when offline.
Firestore has offline capabilities, but Google sign-in does not allow silent-login authentication when offline. (issue)
How can I solve this with just using firebase authentication?
One solution could be storing data offline in files Files and then when online, Authenticate with firebase (run googleSignIn.signInSilently()) and push data to firestore.
Is there a simpler way to do this?
I have an app in which I use firebase storage to provide videos to my users. I would want the users to experience some content offline as well, so does firebase storage have offline capabilities?
I believe what you're looking for is for your users to download videos and store the videos on their device's harddrive. According to this documentation resource, Google Firebase will let you download files from a Google Cloud Storage bucket.
The application may then need to access the local storage of the device and start/close video files locally.
My app send somme data to firebase storage but it is possible that the connection is off when the app want to send those data. I hear that i can achieve that by enabling local storage, i want to known how?
You can see the following site - https://www.firebase.com/docs/web/guide/offline-capabilities.html