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

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

问题描述

昨天,我提交了我的应用以供审核,但我收到了来自 Apple 的消息.

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

应用在 IPv6 网络上进行审核.请确保您的应用支持 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.

我的应用使用了ionic框架,我该如何解决这个问题.

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
}

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

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