wcandillon / react-native-expo-image-cache

React Native Image Cache and Progressive Loading based on Expo
MIT License
668 stars 125 forks source link

Image disapear on iOS after a long period of time #166

Open Alex-vn-boulme opened 3 years ago

Alex-vn-boulme commented 3 years ago

Hi,

I'm using this library on my app, here is my use case : when the users log in, I need to download several images (between 200 and 3000 depending on their account), and I need to cache those images in order to retrieve them when the user is offline.

At first sight, the app seems to work well, but I'm facing a problem : Some users report that on iOS devices after some day (I don't know exactly how many days, but on my tablet it was around 10 days) the images disappeared, therefore my app is unusable anymore.

I'm not 100% sure the issue is due to this library, but I'm guessing it's a cache issue, even thought I can't find the reason.

It's working well on android, can any of you help me ? Maybe it's iOS cache management taking advantage over my app cache, but on my tablet (where I managed to reproduce the bug, I didn't touch the tablet during the 10 days). Maybe there is an expiration date for the cache ?

Any help is appreciated ! Thank you ! :)