NativeScript+Angular Webview's javascript alert and confirm is not working


#1

Hi,

I am including webview in my application, when i went to webview it’s opening html page, that html page has javascript alert and confirm are there, these both are not working in webview, how to resolve this issue?


#2

Try overriding the default WebViewClient with WebChromeClient.


#3

how to do that can you give any example?


#4

Below is a quick example to customize WebViewClient, you have to use WebChromeClient in your case.


#5

i am using angular, will it support for that? where can i include these in my component