I display photos & videos inside my Android application.
The photos caching is ensured by Glide
, but i would like also to cache the videos downloaded from my Firestore database.
Everytime i restart the application it takes ages to load all videos (URLs are stored in Firestore, coming from Firebase storage and are displayed inside a RecyclerView
).
I am aware that firestore allows persistence for the client data when it becomes offline, but not in my case and i thought it was automatic...
What should i do ?
If the videos are read from Firebase Storage, they are not cached locally automatically.
You have a few options though:
See: