"This application does'not work without javascript" 在 android 通过 dialogflow iframe 代码

"This application does'not work without javascript" in android through dialogflow iframe code

我在 android 中实现 dialogflow 的 Web 演示代码时遇到问题,但它向我显示 "This application does'not work without javascript"。这是我写的 html 代码:-

<!DOCTYPE html>
<html lang=\"en\">
<head><meta name=\"viewport\" content=\"width=device-width, initial- scale=1, user-scalable=no\"/>
    <title>Dialog</title>
</head>
<body>
<div align="center">
    <iframe
            id="dialog"
            allow="microphone;"
            width="350"
            height="430"
            src="https://console.dialogflow.com/api-client/demo/embedded/dba29fd3-8e06-4c71-a974-f2b1f1f59776">
    </iframe>
</div>
<div align="center">
    <script>
     var dialogFrame = document.getElementById("dialog");
     var dialogDocument = dialogFrame.contentWindow.document;
     document.write(dialogResponse);
</script>
</div>
</body>
</html>

它像正常的 html 文件一样工作,但在 android 中没有。这是我使用的 android 代码:-

WebView wv = (WebView)findViewById(R.id.webview);
wv.loadUrl("file:///android_asset/test.html");

有人能帮帮我吗?

WebView wv = (WebView)findViewById(R.id.webview_id);
WebSettings webSettings = wv.getSettings();
webSettings.setJavaScriptEnabled(true);