简体   繁体   中英

How to display a website's popup on webview?

On UWP: webview can auto display a popup when navigated to a website. exp: http://loribeauty1.ddns.eagleeyes.tw:80/Login.cgi Like this image: https://ibb.co/6bHjztm On iOS and Android: webview don't display this popup like UWP. Do have a option to enable it?

Speaking for the Android-side: your application needs to override WebViewClient#onReceivedHttpAuthRequest() . When this is called, your app must make its own pop-up UI to receive user credentials, and pass these back to the WebView via HttpAuthHandler#proceed() .

I'm not as familiar with the iOS side, but I expect it needs a similar solution.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM