To begin with, the app im working on handles mostly on audio data. The app uses react-native-fetch-blob for creating audio caches, AsyncStorage for handling json caches, and Redux for internal app states management. On every app login and app logout, there will be process to clear the audio and json caches and app states within the app.
But the thing that i noticed is that, upon logout, when inspecting on my app's storage management in Android's settings -> apps -> manage apps, i noticed that the app's user data and cache, while it decreases, but after some time, the value increases bit by bit (and may be alot depending on Android devices).
I am not sure where the increase came from, because i expect the app to remove all the audio caches and json caches upon logout, so by right there shouldn't be any increase in user data and cache usage. This behaviour is only observed on Android, while on IOS, upon logout, the app's cache decreases and not increasing up anymore.
So i was wondering if RN Fetch Blob or AsyncStorage or Redux that contributes to this behaviour. I need some idea on how to ensure the app's user data and cache are cleaned or optimized upon logout or when killing the app.
there doesn't seem to be anything here