Https url do not works if ssl certificate is not valid

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 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) {


Thanks for you help!


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


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.