Agung
Agung

Reputation: 13823

Can I publish my app to App store without https?

I am new in iOS development, and I want to publish my first app to the app store. but actually the endpoint I get from the backend guy is only http, not https.

My friend said that it must be https or Apple will reject my app to be published in the app store ? is it true ?

If I set the NSAllowsArbitraryLoads key to YES under NSAppTransportSecurity dictionary in your .plist file. like the image below, can I still publish my app to app store using http connection ? (without https)

enter image description here

Upvotes: 2

Views: 2102

Answers (2)

If you are using HTTP there is no reason for worries. Just place NSAllowsArbitraryLoads into your info.plist file.

There is so much misleading information available. But as per my experience its more preferred & compulsory to place the NSAllowsArbitraryLoads whether you are using HTTP or HTTPs.

Important Note :

  • I have worked with both types of connections with HTTP & with HTTPs in both the cases I am used to add NSAllowsArbitraryLoads into info.plist. I have never faced any sort of rejection due to it. So that I am suggesting you to do the same.

Hope this helps to everyone.

Upvotes: 2

Jon Rose
Jon Rose

Reputation: 8563

Your friends is mostly right. But I would say Apple may reject your app. You need to provide a justification for using NSAllowsArbitraryLoads. From apple's doc:

You must supply a justification during App Store review if you set the key’s value to YES, as described in Provide Justification for Exceptions. Use this key with caution because it significantly reduces the security of your app. In most cases, it’s better to upgrade your servers to meet the requirements imposed by ATS, or at least to use a narrower exception. source

Upvotes: 2

Related Questions