user2806784
user2806784

Reputation: 25

How to solve HTTPS issue in phonegap

 <script>

 $.getJSON('https://test.engageport.com/rest/mobile/1', function (data) {
            var ordercodes = $.map(data.data, function(entry){

            Result= entry.ordercode; }
   }
</script>

I am using json url as https://test.engageport.com/rest/mobile/1. In phone-gap i cant get the response. I am getting error like data['null'] is not an object. How to solve this issue. http url is working fine. HTTPS is the problem.

Upvotes: 0

Views: 49

Answers (1)

Jul13nT
Jul13nT

Reputation: 657

Your HTTPS url does not provide a valid SSL Certificate, so your application can't reach it. You can use a valid certificate or install your untrusted certificate on your phone.

Upvotes: 3

Related Questions