How to enable javascript into webView
Solution 1:
JavaScript is disabled in a WebView by default.
WebView myWebView = (WebView) findViewById(R.id.webview);
WebSettings webSettings = myWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
Solution 2:
WebView webView = (WebView) findViewById(R.id.webview);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
Solution 3:
Enabling JS in WebView in Kotlin:
val webView = web_view_id
webView.settings.javaScriptEnabled = true