This is a migrated thread and some comments may be shown as answers.

Clear cache after update

1 Answer 102 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robert
Top achievements
Rank 1
Robert asked on 26 Mar 2015, 09:03 AM
Hi,

I'm not entirely sure what's going on here, hard to troubleshoot as it's intermittent and happening only on users' devices, but I'm finding when we release a significant update to the app stores, we invariably get reports of random issues, errors and crashes which are invariably resolved by telling the user to restart their device. While this solution might be effective it hardly looks professional! Is there any way we can resolve this? I don't know a great deal about the inner workings of Cordova but it seems to me that the runtime is caching some of the JS files. I've tried appending a version number as a query string to the includes (e.g. script.js?v=10) which seemed to work for Android but Windows Phone doesn't support this technique.

Is this a common problem? Is there a better solution than telling users to restart their devices after every update?

Thanks,

Rob

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 31 Mar 2015, 08:02 AM
Hi Robert,

This scenario isn't expected with Cordova apps, since installing an update deletes the old files and installs completely new ones. We have not received other reports like this one, so we would need more information to be able to guess what is causing the problem. Could you confirm that this happens on both Android and WP devices? Do you notice any pattern in the devices make and model or OS versions? Also, do you distribute these apps in the public stores and do you by any chance reference any scripts/styles from a CDN instead of using local ones? 

Regards,
Tsvetina
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
General Discussion
Asked by
Robert
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or