Skip to content

This is a phonegap / cordova 3.3.0 plugin (iOS / Android) which allows to clear the cordova webview cache.

License

Notifications You must be signed in to change notification settings

tiltshiftfocus/cordova-plugin-cache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cache Clear

This is a WebView cache plugin for Cordova 5.4.0 supporting Android (>=2.3.3) and iOS(>=6.0) It allows the app to use javascript to initiate a cordova webview cache clear

There are two methods:

clear(successCallback, errorCallback) cleartemp()

Manual Installation

You may use cordova-cli as follows:

cordova plugin add https://github.com/andxyz/cordova-plugin-cache.git

Usage

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);
  window.cache.cleartemp();
}

About

This is a phonegap / cordova 3.3.0 plugin (iOS / Android) which allows to clear the cordova webview cache.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 51.7%
  • Java 34.4%
  • JavaScript 13.9%