Inappbrowser https phone page not loading

Using phonegap 3.5 on Android Gingerbread phone I noticed the https links are not working

example:

window.open("http://google.com", "_blank", "location=yes")

      

works fine but

window.open("https://google.com", "_blank", "location=yes")

      

it just opens a blank screen. Does anyone else come across this, and what workarounds might there be? The reason I need to do this is the FB auth redirect which

+2


source to share


1 answer


Add this code to your MainActivity file

    public void onReceivedSslError(WebView view,
                SslErrorHandler handler, SslError error) {
        Log.e("Error", "Received SSL error"+ error.toString());
        handler.proceed();
    }

      



It will do a miracle.

0


source







All Articles