I am trying to clear the cache stored in android application which uses cordova webview.
I tried with cordovaWebView.clearCache(true);
Also tried with
I'm using the "cordova-plugin-cache-clear" plugin
https://github.com/anrip/cordova-plugin-cache-clear
To use the plugin, simply call window.CacheClear(success, error);
and it cleans the webView cache.
Simplest answer to this is
cordovaWebView.clearCache(true);
android.webkit.CookieManager.getInstance().removeAllCookie();
cordovaWebView is the instance of Cordovawebview.
Use both in the event where you need to clear the cookie and cache.