Needed datas is not written to cookies immediately in WebView. But when I wait for 10-15 seconds everything is ok. To explain the situation, this example would be good as for me:
I open the app and login. After login, I close the app immediately. Then after I open the app again, it shows me to logout. But if I open the app after 1 minute, it shows again as logged in. For me cookies are written lately. But I cannot find solution. Please help me if you know.
I used CookieManager class but it doesn't help either.
CookieManager.getInstance().setAcceptCookie(true);