2

I am going to publish an app on Apple Store then I came to know about IPV6 rejection issue. My app only support for IPV4 and on this link I found that app should support IPV6.

So my question is that, Is it compulsory that app must support for both IPV4 & IPV6?

Sorry if looks as a foolish question but I am looking for a Apple link & more detail before getting rejected from Apple.

Krunal
  • 77,632
  • 48
  • 245
  • 261
Gagan_iOS
  • 3,638
  • 3
  • 32
  • 51
  • What limits your app to IPv4? Do you have any hardcoded IPv4 addresses? Or is it some dependency that is not compatible with IPv6? – FreeNickname Jan 19 '18 at 10:37

1 Answers1

5

You don't need to worry about IPv6 support, if you've not set hard-core IPv4 IP address in your web server/service url connection.

This Apple document will help you: Supporting IPv6-only Networks

All apps submitted to the App Store must support IPv6-only networking. A majority of apps will not require any changes as IPv6 is already supported by NSURLSession and CFNetwork APIs. However, if your app utilizes IPv4-specific APIs or hard-coded IP addresses, you will need to make changes. Be sure to test for IPv6 compatibility before submitting your app to the App Store for review.

However, Apple guides in Testing your app in an IPv6-only environment:
You should test your app on an IPv6-only network. If you don’t have one, you can set up a test network by following the instructions in Test for IPv6 DNS64/NAT64 Compatibility Regularly.

Following SO reference, faced similar problem, may guide you:

Krunal
  • 77,632
  • 48
  • 245
  • 261
  • This answer isn't completely correct. There are more ways that you can be incompatible with IPv6 networks besides hard-coding IPv4 addresses. It really depends on which API you're using. The high-level APIs take care of the abstraction for the developer, but when low-level APIs are used the developer has the responsibility to do it right. – Sander Steffann Jan 19 '18 at 11:27
  • @SanderSteffann can you please explain more? – Gagan_iOS Jan 19 '18 at 11:38
  • 1
    @SanderSteffann - You are welcomed to improve quality (completeness) of this answer. Please share your inputs are editing this answer or posting your own answer. Thanks for your remark. – Krunal Jan 19 '18 at 12:22