Android Webview 中未呈现特定 URL

And*_*123 1 android android-webview

网站https://app.seesaw.me/#/login不会在 Android Web 视图中为我呈现任何内容。

我的设置如下:

  with(webView.settings) {
            mixedContentMode = WebSettings.MIXED_CONTENT_ALWAYS_ALLOW
            loadsImagesAutomatically = true
            javaScriptEnabled = true
            ResourcesCompat.getFont(requireContext(), R.font.helvetica_neue)
        }

        webView?.loadUrl("https://app.seesaw.me/#/login")
Run Code Online (Sandbox Code Playgroud)

它将加载主页,但当我导航到登录时,屏幕变为空白。logcat 显示此消息。

D/InputMethodManager: HSIFW - flag : 0
I/chromium: [INFO:CONSOLE(18)] "Invalid  asm.js: Type mismatch in assignment", source:  https://app.seesaw.me /#/login?force_login=signup (18)
I/chromium: [INFO:CONSOLE(4)] "The provided value 'moz-chunked-arraybuffer' is not a valid enum value of type XMLHttpRequestResponseType.", source:  (4)
I/chromium: [INFO:CONSOLE(14)] "Uncaught TypeError: Cannot read properties of null (reading 'getItem')", source: https://files.seesaw.me/release/prod/shared-ext.ec61797e71c5b625.bundle.js (14)
I/ViewRootImpl@7385979[MainActivity]: ViewPostIme pointer 0
Run Code Online (Sandbox Code Playgroud)

Nom*_*hai 7

domStorageEnabled = true您好,尝试在之后添加此行javaScriptEnabled = true并让我知道它是否有效