From http to https -- preparing the app

Thanks for this info… Thats the trouble I had… My app would run fine in debug mode but access would fail with release version.

Hi! Although this thread is somehow old, I’m experiencing the same issue… but solved it following this post: http://stackoverflow.com/questions/32148646/in-cordova-on-android-app-requests-with-https-fail-but-same-request-using-http-s

Quoting what the post says:
Open “\cordova\platforms\android\CordovaLib\src\org\apache\cordova\ CordovaWebViewClient.java”. In ‘onReceivedSslError’ method, comment the else part and add handler.proceed() instead.

The only difference is that I did that changed in the file named platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewClient.java

Be ware of this change that you are ignoring SSL errors and could be a vulnerability issue of your app, but at least in my case I have things controlled - or at least I think I have :slight_smile:

1 Like

having the same kind of problem with me too
but i found the fix

Okay, Thank you!

So per your advice , I am using standard http get and post, renaming the URL from http to https

Here is what I am seeing
a) Running in on my desktop (ionic serve -c) on chrome and IE works great - all https urls are resolved
b) Running it on android my real device does not work. The error I see is chromium: Unknown chromium error: -6 and chromium: Unknown chromium error: 0 so please help me guys thanks in advance