the code uses the filename as identifier and assumes it will never change: it checks if the file is in cache (i.e.: has already been downloaded) before downloading it again.
Several solutions:
change the URL of your apk each time it is updated
delete the temp/cache file before attempting to download it again
modify the cordova-plugin-fileopener source code to add a "force download" feature
Hi,
I use fileopener for Auto App Update, the code like that
window.cordova.plugins.FileOpener.openFile( 'http://xxxx/ver1024.apk', function(){ alert('download now.') }, errorHandler);
But, when I try to call openFile, it always give me open the older version in cache.
May I force download when call openFile each time.
Thank you. Willow