关于iOS离子框架的IPv6网络 [英] About iOS IPv6 network with ionic framework

查看:309
本文介绍了关于iOS离子框架的IPv6网络的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天,我提交我的应用程式进行审核,但我收到了来自苹果的邮件。

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


请确保您的应用支持IPv6网络,因为需要具备IPv6兼容性。

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

有关支持IPv6网络的其他信息,请参阅支持iPv6 DNS64 / NAT64网络

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.

推荐答案

> cordova-HTTP

Finally, I used this plugin cordova-HTTP

最后一个版本使用 AFNetworking v3.1.0

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
}

这篇关于关于iOS离子框架的IPv6网络的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆