The problem that webview above android5 cannot synchronize cookies

Recently, I was loading the h5 game in the android webView, and found that some mobile phones have been unable to obtain the token. The common point of the mobile phones that cannot obtain the token is that they are all systems above 5.0. Finally, by looking for the api documents of the system above 5.0, I found that the version above 5.0 The webview has made major changes, and the solution is set

CookieManager.getInstance().setAcceptThirdPartyCookies(webView, true);

record it

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326142194&siteId=291194637