With a standalone app on the iPhone, can I somehow delete the cache completely when I close it-bringing it to the background, so it really starts from scratch again? Loading all files from scratch.
I have tried to use location.reload to reload it from start but it is not emptying the cache then.
Thanks Overman, but I have tested with
window.location.reload(true); and to set
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Expires" content="-1">
in the index.html file, but it is not removing the cache, or at least not the right cache in any case?!
The only way I can delete the cache to make the camera work after being in the background is if I dubble tap the home button and then swipe up on the app to remove it from the cache.
I don’t know what typ of cache it is emptying when you swipe up and remove it, but that´s the cache I need to be able to remove.
I tested yesterday with an iPhone 8 plus with iOS 12.4.1 and it works as it should there, the camera is working even if the app has been in the background. And the camera not working after being in the background, is why I need to remove the cache.
So this is a iOS 13.3 problem, since it worked before.