Ajax request with AngularJS and Ionic : http or https?

Hi,

Is there an obligation to use an SSL certificate to request the server in an app ?

Example :

$http.get('http://www.myurl.com').
      success(function(data, status, headers, config) {
}).
      error(function(data, status, headers, config) {
});

Or do i need to use https ?

$http.get('https://www.myurl.com').
          success(function(data, status, headers, config) {
}).
          error(function(data, status, headers, config) {
});

I heard that was imperative to use HTTPS to submit an app to App Store but i don’t retrieve this information.

Thank you :wink:

Hi,

Ive release a few apps on iOS connecting to plain HTTP web services and they have all been approved.

1 Like

Thanks for your answer @DonnyCrash :blush: