Enabling general JavaScript in WebViewClient

前端 未结 8 707
醉梦人生
醉梦人生 2020-11-29 03:32

While searching for an answer in google, it seems that I\'m not the only one stuck with a problem that seems impossible to solve.

I\'ve managed to create a WebView w

8条回答
  •  一生所求
    2020-11-29 03:37

    Do "Javascript-URLs" get routed through shouldOverrideUrlLoading? Try checking that and if so, return false for links like that (so that the webview handles the link, not your WebViewClient)

提交回复
热议问题