ios - 关于使用 ionic 框架的 iOS IPv6 网络

标签 ios angularjs cordova networking ionic-framework

昨天,我提交了我的应用程序以供审核,但我收到了苹果的消息。

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.

我的应用程序使用 ionic 框架,我该如何解决这个问题。

我已经使用域访问我的服务器,但这个问题仍然存在。

最佳答案

终于用上了这个插件cordova-HTTP

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

然后,添加一些代码以求解我的网络问题

// 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 - 关于使用 ionic 框架的 iOS IPv6 网络,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37605742/

相关文章:

ios - 在 XMPP 框架中在后台发送本地通知

ios - 自定义 UITableViewCell ImageView 未显示

android - 使用 angularjs 和 cordova 上传相机图像

javascript - ionic : mouse event within OpenLayers wasn't handled

android - 将设备插件(和其他)手动安装到 cordova 3.0

android.support.v4.app 不存在

ios - UIActivityViewController - 电子邮件和 Twitter 共享

ios - 为什么我看不到我的导航栏项目?

javascript - 如何在 AngularJS 中使用 pickaday 指令禁用当前和 future 日期

angularjs - 无法在指令中获得 $error.maxlength 验证