Android Question Can't see browser pop up messages in webview

Baris Karadeniz

Active Member
Licensed User
In my app I use webview. I can see the pop up messages of web site but I can't see the browser pop up messages like "Do you want to save your password for this site?". What should I do?
 

Baris Karadeniz

Active Member
Licensed User
I used the codes below to see web site pop-up messages. It works. But I can't see browser pop-up message like "Do you want to save your password for this site?".

B4X:
webviewextras1.addWebChromeClient(WebView1,"webviewextras1")
 
Upvote 0

warwound

Expert
Licensed User
Longtime User
I used the codes below to see web site pop-up messages. It works. But I can't see browser pop-up message like "Do you want to save your password for this site?".

B4X:
webviewextras1.addWebChromeClient(WebView1,"webviewextras1")

The WebChromeClient only enables support for javascript 'alert', 'confirm' and 'prompt' dialogs.

The 'save password' dialog needs to be enabled by using the WebSettings method setSavePassword method.
My WebViewSettings library can do this.

However look at the official documentation for the setSavePassword method:

This method was deprecated in API level 18.
Saving passwords in WebView will not be supported in future versions.

Sets whether the WebView should save passwords. The default is true.

Depending on which API level you are using you might be out of luck!
 
Upvote 0
Top