If I have to pass a Cookie to a WebView, then I have to call
CookieManager.getInstance().setCookie();
before WebView.loadUrl() API.
Should I also call
CookieSyncManager.getInstance().sync()
If yes, why ?
To be more general, When and where CookieSyncManager should be used with CookieManager ?
The CookieManager allows you to remove/add/… your Cookies.
The CookieSyncManager should be called when you want to persist the cookies. If you don’t call it, it will remain in the RAM (see documentation).