45
Views
2
Comments
Web-view Cookies Disable in Mobile
Question

For mobile application, I had noticed that We can get cookies from path:"/data/data/app identifier/app_webview/Default" in cookies file.

I had checked with native android to clear these cookies using the below codes.

webView.clearCache(true);
    webView.clearHistory();
    WebSettings webSettings = webView.getSettings();
    webSettings.setSaveFormData(false);
    webSettings.setSavePassword(false); // Not needed for API level 18 or greater (deprecated)

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {
        CookieManager.getInstance().removeAllCookies(null);
        CookieManager.getInstance().flush();
    } else {
        CookieSyncManager cookieSyncMngr = CookieSyncManager.createInstance(this);
        cookieSyncMngr.startSync();
        CookieManager cookieManager = CookieManager.getInstance();
        cookieManager.removeAllCookie();
        cookieManager.removeSessionCookie();
        cookieSyncMngr.stopSync();
        cookieSyncMngr.sync();
    }

Can some one helps how to disable this in Outsystems.I had already tryed with Ciphered Local Storage Plugin but its failed

2025-11-19 06-14-01
Miguel Verdasca
Champion

Hi,

I think you need to use the InAppBrowser or CookieManagerPlugin plugin. It is on Forge

Cheers,

Nuno Verdasca



2020-08-05 08-52-58
Ruben Goncalves

Hi  Kelash,

What are you trying to do? Can you provide some more context?

Cheers,

RG

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.