Webview cannot accept cookies

前端 未结 5 1753
醉话见心
醉话见心 2020-12-10 12:43

I\'m creating a WebView based Android app that enables the user to login onto a mobile operator. When I run the app the WebView opens the website but I get a message that th

5条回答
  •  一整个雨季
    2020-12-10 13:23

    You have to enable javascript and then getting instance of cookie manager accept cookie By using javascriptenable cookie gets stored

    webView.getSettings().setJavaScriptEnabled(true); CookieManager.getInstance().setAcceptCookie(true);

提交回复
热议问题