Cache Issues When we install a new APK


#1

Hello, I’m in the process of building an android App using ionic. The app has a dynamo database and MySQL database.
The issue I have, is that when I install a new APK and use the app for the first time, the app works fine. However, when I close the app and I open that app again, we get a previous version of the app that is cached. If we manually clear the app cache and data, the app starts working fine. But then when we close the app and reopen it again the issue of cache resurfaces.
Anyone has encountered this issue and found a fix for it?


#2

Did you see this?


#3

Thanks so much for your reply.
But our issue is a little different. We are pretty sure that the code has no bugs. So, we are now checking if the local environment where the APK gets compiled corrupts the APK by caching an older version of the app in the new APK.

աíԵհ :peace_symbol: & ღ