You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

cordova-plugin-clear-data

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-clear-data

Cordova plugin to clear locally persistent user data on Android and iOS.

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
117
5.41%
Maintainers
1
Weekly downloads
 
Created
Source

cordova-plugin-clear-data Latest Stable Version Total Downloads

Cordova plugin to clear locally persistent user data on Android and iOS.

Installation

$ cordova plugin add cordova-plugin-clear-data

Usage

The plugin is exposed via the ClearData global namespace.

cache()

Platforms: Android and iOS

Clears the web resources cache of the application (in-memory and on-disk).

ClearData.cache(success, error);

Parameters

  • {function} success - (optional) function to execute on successfully clearing app cache.
  • {function} error - (optional) function to execute on failure to clear app cache. Will be passed a single argument which is the error message string.

Simple usage

ClearData.cache();

Advanced usage

ClearData.cache(function() {
    console.info('Successfully cleared app cache');
}, function(err) {
    console.error('Error clearing app cache', err);
});

Keywords

cordova

FAQs

Package last updated on 12 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts