Android Webview: having separate (temporary) cookies for private mode

Purpose: to have cookies in private / incognito mode of web browsing, but they should be deleted after the user closes this tab.

Problem: CookieManager in android is singleton, and setting or deleting cookies for any individual browser instance also affects other webview instances.

What could be a possible way to solve this problem?

Thanks in advance!

+4
source share

Source: https://habr.com/ru/post/1675169/


All Articles