Reputation: 736
I want to know whether Firebase storage for Android does support offline capabilities like firestore or not?
Upvotes: 7
Views: 2420
Reputation: 752
Firebase works even if your app temporarily loses its network connection. In addition, Firebase also provides tools for persisting data locally, managing presence, and handling latency.
You can enable disk persistence with just one line of code.
FirebaseDatabase.getInstance().setPersistenceEnabled(true);
Firebase also provide below functionality:-
Store Fresh Data
like :-
DatabaseReference scoresRef =FirebaseDatabase.getInstance().getReference("scores");
scoresRef.keepSynced(true);
Querying Data Offline
Handling Transactions Offline
Upvotes: -3
Reputation: 317372
The Firebase SDKs for Cloud Storage don't natively support offline access. If you use a library such as Glide for Android, you may have some offline disk cache support, but that not part of the core Android SDK for Cloud Storage.
Upvotes: 8