Unity iOS Application Ipv6 support testing -


i have submitted unity3d application applemarket, has been rejected because of bug: application works not intended while connected ipv6 network.

i have mac virtual machine(thanks vmware workstation), , need somehow test application on ipad simulator on virtual machine. pc hosting virtual machine connected internet via router(cabel).

how enable ipv6 network test app?

i faced problem in ios. change reachblility class internet connection method , app approved. have not not more knowledge in unity. in ios writing code work ipv6. if want make ipv6 network in system please check

https://developer.apple.com/library/content/documentation/networkinginternetweb/conceptual/networkingoverview/understandingandpreparingfortheipv6transition/understandingandpreparingfortheipv6transition.html

objective c

 + (instancetype)reachabilityforinternetconnection  {   struct sockaddr_in6 zeroaddress;   bzero(&zeroaddress, sizeof(zeroaddress));   zeroaddress.sin6_len = sizeof(zeroaddress);   zeroaddress.sin6_family = af_inet6;   return [self reachabilitywithaddress: (const struct sockaddr *) &zeroaddress];  } 

swift 3

func ipv6reachability() -> scnetworkreachability?  { var zeroaddress = sockaddr_in6() zeroaddress.sin6_len = uint8(memorylayout<sockaddr_in>.size) zeroaddress.sin6_family = sa_family_t(af_inet6)  return withunsafepointer(to: &zeroaddress, {     $0.withmemoryrebound(to: sockaddr.self, capacity: 1) {         scnetworkreachabilitycreatewithaddress(nil, $0)     } }) } 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -