0
我正在通过Android应用程序中的WebView
通过一个项目对一个网站进行身份验证。我已经研究了相当多的问题,共识是使用onReceivedHttpAuthRequest
方法。但是,如果我使用诸如webview.loadUrl("https://github.com/login");
之类的命令,则在加载页面或登录时,我从来都不会在Catlog中收到调试消息。为什么AuthRequest
永远不会通过吗?Android Webview URL身份验证
@Override
public void onReceivedHttpAuthRequest(WebView view,HttpAuthHandler handler, String host, String realm) {
handler.proceed("[email protected]", "mypassword");
Log.d("request","received")
}