title: App rejected NSUrlConnection IPv6 network issue iOS
body: <p>iTunes App rejected.</p>
  
  <p>Reason :</p>
  
  <blockquote>
    <p>We discovered one or more bugs in your app when reviewed on iPhone
    running iOS 9.3.4 on Wi-Fi connected to an IPv6 network.</p>
  </blockquote>
  
  <p>Specifically, the app content failed to load.</p>
  
  <p>We tested it in NAT64 network (setup from mac) and it's working fine , but Apple review team have an issue with IPv6 network.</p>
  
  <p>We have used NSURLConnection for calling web service , but getting nil response.</p>
  
  <p><code>NSURLConnection:connectionDidFinishLoading:</code> is called but getting nil NSData response in IPv6 network , it’s working fine in IPv4 network</p>
  
  <p>json parsing code</p>
  
  <pre><code>NSDictionary *dictionary = [NSJSONSerialization JSONObjectWithData:receivedData options:kNilOptions | NSJSONReadingAllowFragments | NSJSONReadingMutableContainers error:&amp;error];
  </code></pre>
  
  <p>getting parsing error becauseof nil receivedData : The data couldn’t be read because it isn’t in the correct format</p>
  
  <p>it's all working fine in IPv4 network , also in IPv6 connectionDidFinishLoading: called but why getting nil response ?</p>