Unable to load fast.com in webview

161 Views Asked by At

I want to create a simple app with a few useful webview links but fast.com will not load

webView.loadUrl("https://fast.com");

I've tried most webSettings but nothing works. What am I doing wrong?

2

There are 2 best solutions below

1
Narendra_Nath On BEST ANSWER

I think the one setting you might be missing is this

websettings.setDomStorageEnabled(true)
0
Nischal Paudel On

Sometimes, I also used to develop apps and I have also faced same problem. And I found that making webview wrap_content also make these problems so make webview size match_parent. And put it on a linear layout or on other layout to make of your size. And also enable on your java file.

webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setDomStorageEnabled(true);
webView.setWebViewClient(new WebViewClient());`
webView.setWebChromeClient(new WebChromeClient());