Android webview won't load my URL but will load others

后端 未结 3 1737
北荒
北荒 2021-01-01 23:56

I have a webiew app on android which loads some websites but not the one I need it to.

I have no idea if this is a problem with the website host or something I can d

3条回答
  •  渐次进展
    2021-01-02 00:20

    Finally found the answer after a lot of searching. For anybody in a similar situation, as well as enabling javascript you also need to enable Dom storage by adding in;

    webView.getSettings().setDomStorageEnabled(true);
    

    Change webView to whatever yours is called and you should be good to go.

    Hope this helps someone.

提交回复
热议问题