We are creating an iOS application dedicated to the Client-Server App. We are using a SQL and WCF web service connection in an iOS application with Xamarin.
SQL connection code:
String ips = "10.0.0.1" ;
SqlConnection con = new SqlConnection(@"Data Source=" + ips + "; initial Catalog="x";user id =y;password = z;");
Apple decided to use only ipv6 on iOS9, so they published an IPv6 compatibility document - IPv6 Documentation
Xamarin posted a blog post about this too - Creating Your iOS IPv6 Ready Applications
I read all of these documents, but I was not able to get rid of this problem with "Store Rejection".
I want to show you my last attemp: (ipv4 to ipv6)
string input = "10.0.0.1";
string ips = "";
IPAddress address;
if (IPAddress.TryParse(deviceIP, out address))
{
switch (address.AddressFamily)
{
case System.Net.Sockets.AddressFamily.InterNetwork:
ips = input;
break;
case System.Net.Sockets.AddressFamily.InterNetworkV6:
IPAddress ip = IPAddress.Parse(input).MapToIPv6();
ips = "[" + ip.ToString() + "]";
break;
default:
break;
}
}
I used the function MapToIPv6()as described in the Xamarin blog post, but again my application was rejected by Apple.
IPv4 (Apple ). Apple ipv4 ipv6, .
, .
: Visual Studio 2015 Xamarin Windows 10 + Mac OS X El-Capitan
: IPv4.