cordova delete cache
// download this plugin. it reset cache on internal browser
cordova plugin add https://github.com/moderna/cordova-plugin-cache.git
// use this function in index.js or on main html
document.addEventListener('deviceready', onDeviceReady);
function onDeviceReady()
{
var success = function(status) {
alert('Message: ' + status);
}
var error = function(status) {
alert('Error: ' + status);
}
window.cache.clear( success, error );
}// download this plugin. it reset cache on internal browser
cordova plugin add cordova-plugin-cache-clear
// use this function in index.js or on main html
document.addEventListener('deviceready', function() {
var success = function(status) {
alert('Message: ' + status);
};
var error = function(status) {
alert('Error: ' + status);
};
window.CacheClear(success, error);
});
Also in JavaScript:
- get number of creeps screeps
- node js how to basic auth to specific urk
- JavaScript function that generates all combinations of a string.
- trigger click jquery
- jqgrid aftershowform
- angular get response headers
- vue.js use scss in balise style
- package json scripts multiple commands
- javascript substring messes emoji
- leap year in javascript
- nested array loop in javascript
- document queryselectorall and map javacript
- lodash debounce
- js copy array into another
- how to remove warnings in react js console
- array in javascript
- video recorder using webrtc and javascript
- javascript click event notifications
- number to string javascript
- convert excel file to json using node js
- how to prevent previous radio button active react native
- javascript alert
- jquery check checkbox
- check if element is visible