1

I've created Cordova Android app, and I'm facing this issue:

When on 3G/4G, whenever I try to make request towards my server I get the error:

ERR_TUNNEL_CONNECTION_FAILED.

When I am on WIFI everything works fine. This is not happening on all Android devices, I am facing this issue on Samsung Galaxy A5 (nd some other Androids).

I've discovered that if we use HTTP instead of HTTPS everything is fine.

Also according to https://www.sslshopper.com/ssl-checker.html and https://www.digicert.com/help/ everything seems to be fine with our SSL cert.

How can we solve this issue?

asked Jan 26, 2017 at 12:36
7
  • Check your Proxy settings. If possible remove the proxy and try again. Commented Jan 30, 2017 at 11:34
  • have you implemented payment gateway in your app ?? Commented Jan 30, 2017 at 11:38
  • What does any payment gateway have to do with this? We are not using any external payment gateways, just Android in-app purchases Commented Jan 30, 2017 at 11:44
  • it blocks the proxy requests Commented Jan 30, 2017 at 12:06
  • Thanks, I had no idea Commented Jan 30, 2017 at 12:13

3 Answers 3

1
+200

This usually happens because your provider is configuring a proxy in your device. Try checking your current APN setting and deleting the fields proxy and port from it.

This also can be caused if you are using a port different from 443

answered Jan 29, 2017 at 19:02
Sign up to request clarification or add additional context in comments.

7 Comments

Thanks for answer but my app is B2C app, with more than 100k+ active users, so the solution must be within the app, I cannot rely on the users to configure their proxies
There is no solution you can implement within the app, this only affect to users with a proxy set, not all of them will have it set, this depends on the provider.
But for example whats app, facebook and similar apps are working without any problem on this device, shouldn't they have same problem as well ?
are you using a port different from 443 for your https website?
I have run some test, and as far as I can say the problem was 8443 port, thank you very much for your answer!
|
0

I wonder if you have found your answer or not, but still want to post answer for others looking for the solution: Note that Cordova doesn't allow https calls to Servers with untrusted ssl certificate installed on them. You can ignore this error and continue by making a small change in a cordova file.

Open "\cordova\platforms\android\CordovaLib\src\org\apache\cordova\ CordovaWebViewClient.java". In 'onReceivedSslError' method, comment the else part and add handler.proceed() instead.

answered Jan 30, 2017 at 13:21

Comments

0

This issues happens with mobile data connection because the default Access Point that came with carrier generally have proxy that will not allowing SSL Tunneling. All you have to do is to set Proxy and Port to nothing.

Also ensure to use only port 443 for HTTPS.

answered Jan 31, 2017 at 6:00

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.