Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

About iOS IPv6 network with ionic framework

Yesterday, I submit my app for review, but I got a message from apple.

Apps are reviewed on an IPv6 network. Please ensure that your app supports IPv6 networks, as IPv6 compatibility is required.

For additional information about supporting IPv6 Networks, please refer to Supporting iPv6 DNS64/NAT64 Networks.

For a networking overview, see About Networking.

My app is used ionic framework, how can I fix this problem.

I already used domain to access my server, but this problem still exist.

like image 328
Peace Pan Avatar asked Jun 03 '16 04:06

Peace Pan


1 Answers

Finally, I used this plugin cordova-HTTP

the last version this used the AFNetworking v3.1.0

then, add some code to solving my networking issue

// using AFNetworking if on iOS device
if ($window.cordova && ionic.Platform.isIOS()) {
    // $window.CordovaHttpPlugin.get
    // $window.CordovaHttpPlugin.post
    // or
    // cordovaHTTP.get
    // cordovaHTTP.post
} else {
    // $http.get
    // $http.post
}
like image 81
Peace Pan Avatar answered Oct 07 '22 06:10

Peace Pan