安卓铬错误

我有一个安卓应用,它有webview,可以通过Instagram进行社交登录。当我尝试加载以下网址。”https:/api.instagram.comoauthauthorize?client_id=ba231a873ea145af9f97866de4718fe6&redirect_uri=https:/instagram.com&response_type=token&display=touch&scope=public_content。“一些chromium错误显示。当我尝试通过通常的浏览器加载相同的网址时,它的工作正常的知识。

I/chromium: [INFO:CONSOLE(0)] "The Content-Security-Policy directive 'worker-src' is implemented behind a flag which is currently disabled.
", source: https://www.instagram.com/accounts/login/?force_authentication=1&only_user_pwd_authentication=1&platform_app_id=&next=/oauth/authorize/%3Fclient_id%3Dba231a873ea145af9f97866de4718fe6%26redirect_uri%3Dhttps%3A//instagram.com/%26response_type%3Dtoken%26display%3Dtouch%26scope%3Dpublic_content (0)

I/chromium: [INFO:CONSOLE(15)] "The key "viewport-fit" is not recognized and ignored.", source: https://www.instagram.com/accounts/login/?force_authentication=1&only_user_pwd_authentication=1&platform_app_id=&next=/oauth/authorize/%3Fclient_id%3Dba231a873ea145af9f97866de4718fe6%26redirect_uri%3Dhttps%3A//instagram.com/%26response_type%3Dtoken%26display%3Dtouch%26scope%3Dpublic_content (15)

有什么办法可以解决这个问题吗?

解决方案:

似乎你必须添加这个调用

WebSettings settings = webView.getSettings();
settings.setDomStorageEnabled(true);

是这个的翻版 发出

本文来自投稿,不代表实战宝典立场,如若转载,请注明出处:https://www.shizhanbaodian.com/5072.html

(0)
上一篇 2022年6月1日 下午4:30
下一篇 2022年6月1日 下午4:30

相关推荐

发表评论

登录后才能评论