clear-mobile-cache-plugin
Mobile icon

Clear Mobile Cache Plugin

Stable version 1.0.1 (Compatible with OutSystems 11)
Uploaded
 on 11 July 2022
 by 
0.0
 (0 ratings)
clear-mobile-cache-plugin

Clear Mobile Cache Plugin

Documentation
1.0.1

What is Clear Mobile Cache Plugin?

For Android, this plugin’s main function is to clear webView cache and all files within the app’s cache directories and code cache directory. This plugin will delete all files within output paths of functions getCacheDir(), getExternalCacheDir(), and getCodeCacheDir() under Context library.


For iOS, this plugin clears the web resources cache of the application (in-memory and on-disk).


Client Actions:

Action

Description

CheckClearMobileCache

This function checks if plugin is available for use.

ClearMobileCache

This function clears all files in app's cache directories (getCacheDir, getExternalCacheDir, and getCodeCacheDir). Some residual files might still remain in App's storage settings .


Extra Client Actions:

Action

Description

ClearWebCache

This function clears the web cache being used by the app.

ClearWebCookies

This function clears cookies in web browser.

ClearWebLocalStorage

This function clears the Web Storage of the app both local storage and session storage.



How can I use the plugin?

You can use all of the available actions by adding them to dependencies and using them in client or screen actions. All the actions available in this plugin have output parameters IsSuccess and ErrorMessage. These can help you know and identify if the action is successful or if an error was encountered.



Repository: https://github.com/jpkazuha/cordova-plugin-clear-data