Https url do not works if ssl certificate is not valid


#1

Hi everyone,

I am integrating one auth2 implementation in ionic where in sendbox mode login page is accessed through https url.
When ionic try to open that url using window.open it does not show anything, just show blank page only.

Is their any way to handle ssl error or bypass it, i checked their are method in java classes but no idea how to modify them or they work or not.

In Native Android apps, developers handle this using following code implementaiton

public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {

        handler.proceed();
    }

Thanks for you help!


#2

Hi,

I think its related to angular $http or $resource. What error did you get from server side ?


#3

@jigarakatidus

No, thats not.

I am implementing an outh2 where api sandbox url is accessible with https and certificate is not valid in case of sandbox mode.

It works fine in browser after we do proceed to unsafe mode with an https request.

But does not work in android.