TheFinestArtist / FinestWebView-Android

Beautiful and customizable Android Activity that shows web pages within an app.
https://finestwebview.web.app
2.32k stars 531 forks source link

How to enable the javascript alert #140

Open AnandSingh opened 6 years ago

AnandSingh commented 6 years ago

How can i enable the javascript alert by using the library.

for example, i do normally in a webview to enable the alert

mWebView.getSettings().setJavaScriptEnabled(true);before the line mWebView.setWebChromeClient(new WebChromeClient());

Will appreciate your help in this regard. Thanks

ponnamkarthik commented 6 years ago

you can use

new FinestWebView.Builder(this)
            .webViewJavaScriptEnabled(true)
            //remaining stuff