#android webview 302 redirects with HTTPS (SSL) not working

Oscar Brito

If during development the WebView redirects not works, try to override the validation of SSL like this:


webView.setWebViewClient(
new WebViewClient(){
 
@Override
      public void onReceivedSslError (WebView view, SslErrorHandler handler, SslError error) {
          handler.proceed();
      }

@Override 
public boolean shouldOverrideUrlLoading(WebView view, String url){
  view.loadUrl(url);
return false;
}

...