【发布时间】:2020-06-17 16:59:42
【问题描述】:
看完android user agent我在WebView中设置:
webView.settings.apply {
userAgentString = "some string"
javaScriptEnabled = true
javaScriptCanOpenWindowsAutomatically = true
domStorageEnabled = true
}
并加载了 URL“https://www.whoishostingthis.com/tools/user-agent/”。在 API 21 和 29 的模拟器中,它运行良好。但在 API 30 中显示:
如何在 API 30 中更改用户代理?
【问题讨论】:
标签: android android-webview user-agent