Answers for "cordova delete cache"

1

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 );
}
Posted by: Guest on November-08-2020
0

cordova delete cache

// 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);
});
Posted by: Guest on November-08-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language