I have a problem with my WebView and authentication b. I created the following onReceivedHttpAuthRequest
:
@Override public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { Log.d(this.toString(),"onReceivedSslError error:"+error.toString()); handler.proceed(); } @Override public void onReceivedHttpAuthRequest(WebView view, HttpAuthHandler handler, String host, String realm) { Log.d(this.toString(),"onReceivedHttpAuthRequest host:"+host+" realm"+realm); handler.proceed(HttpHelper.HTTPUSERNAME, HttpHelper.HTTPPASSWORD); }
The application is usually authenticated directly on the web server ( onReceivedHttpAuthRequest
will be called about 5 times, and then the page will be loaded). But sometimes there is only a blank page, and I see in Logcat about 2-3 calls onReceivedHttpAuthRequest
. Then I have to close the application and restart it. This does not help reload activity using WebView
. Perhaps this is a problem with https that will also be used?
And yes, I already used Google ... but could not find the answer.
Thanks for your help in advance!
source share