When embedding WebView in an application and loading html-pages in it, JavaScripts alert() do not work.Give me an example pls
When embedding WebView in an application and loading html-pages in it, JavaScripts alert() do
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The default
WebChromeClientimplemented by the embedded browser will discard javascript alerts, you should override theWebChromeClientimplementation with your own version, this also allows you the ability to create your own custom alerts in place of the default one like so:…