Software Archive
Read-only legacy content
17061 Discussions

My app can able to connect https website in Emulator , but not in mobile device , how could i debug the issue.

Thirukkumaran_N_
Beginner
1,209 Views

My application is connecting to an API through https and it is working fine in Emulator, but when i pushed to Server and tested in my Samsung mobile device ( A8), i am not getting the expected response, looks device couldn't able to connect to https, how could i debug this issue

0 Kudos
26 Replies
Alexandre_R_1
Beginner
210 Views

 

Thiru

 
Hello, it managed to evolve with the solution of this problem? why I'm having the same problem .... if you have any news will be very useful .... thanks
0 Kudos
Thirukkumaran_N_
Beginner
210 Views

Paul

As i mentioned earlier, my app is working fine in the Emulator, but not in device, i am not sure how this is related to OAuth techniques, 

there are 2 issues currently i am facing, 

1) my POST requests are failing in server  since my origin is going as "file://" from device, i am calling an API and its hosted in IBM APIm

2) my GET requests are getting cancelled in device itself , i am still checking on the reasons,

 

Regards

Thiru

0 Kudos
Alexandre_R_1
Beginner
210 Views

Regards,
  I am facing the same problem reported in its POST, my ajax request is not sent when the testo DEBUG together with the appliance.
  An important point, my destination URL is HTTPS and it gives error, when I switch to an HTTP URL does not show the error, works normal.
I will continue investigating, if you have news, send it to us ...

Thank you

0 Kudos
Swati_S_Intel1
Employee
210 Views

@Thiru, it looks like there is an SSL certificate issue. The Android webview is sensitive about SSL certificate. Make sure your site (I'm assuming you are trying to access your own site) has proper SSL certificate installed. The browsers are more forgiving about the some improper SSL certificates. 

Please see this post for details on SSL certificate on Android webview:http://stackoverflow.com/questions/20036260/phonegap-android-app-ajax-requests-to-https-fail-with-status-0

0 Kudos
Thirukkumaran_N_
Beginner
210 Views

Hi Swati,,

1) i have gone through this link before and used <application android:debuggable="true"...>in my app as suggested, hence i could able to get the exact error details in device to understand why the post call is failing, but still the call is failing , i am trying to hit the SIT https URL, this is not hosted by me, i will try to hit the higher version like UAT and check.

2) also i am looking to setup http URL and check in the device, will update you

 

Regards

Thiru

0 Kudos
Yonas_H_
Beginner
210 Views

Hello Thiru

Seven months after your last post i am facing the same problem, can't access my database with https:// url. I read all posts but didn't see any solution. Did you manage to break it? 

 

0 Kudos
Reply