Which alternative to "Firebase Storage" could I use for my Flutter App? - flutter

I'm developing an app with Flutter and I need a lot of database storage to store my data (images and videos).
Currently I'm using Firebase for:
"User Authentication, Firestore Database, Dynamic Links, Storage and so on"
The pricing for the storage (GB stored) itself is ok for me but Firebase also charges for GB Transfered and Operations(uploads & downloads) which can get expensive as you can see in the snapshot below:
I am actually looking for an alternative to Firebase Storage which does not charge for Data transfer of Operations (at least sth. which is not that expensive).
Does anyone know which cloud storage I could use instead and also how to migrate in my flutter app?
I'm also open to use a own server running on a VPS but I have no clue how I would establish a connection to the own server in order to be able to up- and download media files.
Please provide a tutorial/instructions how to build your own server and connect with flutter app since I'm interested on anyway.

I would recommend using Supabase, it's a Firebase alternative and it's open source, supports Flutter/Dart and supports the storage service.
Check it from here Supabase storage
you could configure it and use it with your own hosting, and it will cost you only the price of hosting it on some cloud service, where you will store your files.

Related

How to create flutter app's offline and online

i am just looking for ideas about how to make the app work in online and offline modes(it is a todo app and it should work online and offline both)
I have a todo app that stores the data in sqflite database(locally on the phone) when the app goes online I want the data to be synced with my online database for online database i am using from mongodb. i am just looking for suggestions and also i want to ask which offline database is fine beside of mongode, Hive or sqflite.
you can use a shared_prefernce library and create a function if phone not connected to wifi return null else if connected use socket emit and clear local storage
MongoDB's Realm supports the sync feature, however this would lock your application to the MongoDB's Atlas hosted Database.

Google online Storage method

I have been doing a bit of testing on image ML (machine learning) with OnePanel and I have been using my local PC,which I would like to move to Google Cloud Platform (GCP),I usually have about 400 new images to run though ML, The code that runs does ML and Downloads the image from web is written in Python.
My question is which Google storage Should I use Cloud FlieStore, Cloud Store, or what else they have. Also, Ideally the Python code should be able to directly sent the download images on Cloud (or download to local then upload then I will delete from local). The images are quite small size (100 images is 15MB)
Since your data is unstructured, then it breaks down to two options:
If you do not need Mobile SDKs then Cloud Storage is the best option, if you need Mobile SDKs then Cloud Storage for Firebase. Hopefully that answers your question.

Can I pre-cache data to work offline in mobile app using AppSync?

I am developing an Android and iOS app that could be used in areas that have a very poor or no data connection. It is a requirement for the app to be pre-loaded with all of the data so it will work even if the app never communicated with the server, but it also needs to be able to update and sync when a connection is made. Is it possible to manually populate the AppSync (Apollo) cache database with data on launch and query and mutate it later? The app also contains several search and filter queries. Our backend API is currently using GraphQL.
I have seen this question, Is it possible to build offline-first mobile apps using AWS AppSync?, but it is a little different that what I'm asking.
The recommendation would be to hydrate (read: pre-load with data) a local SQLite database after install. SQLite is what the 'local cache' uses to persist data on the device.
Refer to this github issue for a code example of how to do this:
https://github.com/awslabs/aws-mobile-appsync-sdk-js/issues/160

It's possible to create an offline app using flutter

I want to develop offline book reading app using flutter. There is any way in flutter so that user can access book offline.
you can put data in form of json and load data when you requires it
you can read more about it here
https://flutter.io/assets-and-images/
You can download the images/pdf files of your book in the device storage (External Storage) by asking user like
"Hey! Do you want this to be available offline? Cool, click the button and grant the storage permission in order to proceed".
After this, you can download the files from the server in device external storage and use it. Simple!

Firestone offline capabilities flutter

I know that Firestone will store data if the user is offline and I saw that there is a way to do this with native code, but is it possible to enable these offline capabilities in flutter itself?
Firebase firestore support full offline. I’m using it myself. So long as you’ve read the data at least once before going offline. If using firebase authentication - the custom option also works offline. Google sign-in does not.
The downside to firebases offline capabilities is that it’s only firestore (not counting the older firebase db) and not the other products like cloud storage.
So for example I’ve written an app and the document side of it is fully offline enabled however you can take photos in the app and I had the write the offline capabilities to sync this photos with firebase cloud storage myself.
(I basically just keep them in a pending folder and try to sync them when the device has connectivity.)