在IPv6上,Ionic Android App中拒绝的所有$ HTTP GET和POST调用都显示错误“无法加载资源:net :: ERR_NAME_NOT_RESOLVED”。我已经尝试过cordova白名单插件,但仍然显示相同的错误。 注意:适用于IPv4设置。
Config.xml文件: -
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.jio.smart.vehicle" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Name</name>
<description>

An Ionic Framework and Cordova project.

</description>
<author email="hi@ionicframework" href="http://ionicframework.com/">

Ionic Framework Team

</author>
<content src="index.html"/>
<access origin="*" subdomains="true"/>
<access origin="tel:*" launch-external="yes"/>
<access origin="cdvfile://*"/>
<allow-navigation href="*" />
<preference name="webviewbounce" value="false"/>
<preference name="UIWebViewBounce" value="false"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="android-minSdkVersion" value="16"/>
<preference name="loadUrlTimeoutValue" value="700000" />
<preference name="FadeSplashScreen" value="false"/>
<preference name="AndroidPersistentFileLocation" value="Compatibility"/>
<preference name="BackupWebStorage" value="none"/>
<preference name="SplashScreen" value="screen"/>
<preference name="android-windowSoftInputMode" value="adjustPan"/>
<preference name="AutoHideSplashScreen" value="false" />
<preference name="ShowSplashScreenSpinner" value="true"/>
<preference name="StatusBarOverlaysWebView" value="false"/>
<preference name="android-targetSdkVersion" value="20"/>
<hook type="before_run" src="hooks/appBeforeBuild.js" />
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" onload="true"/>
</feature>
<platform name="android">
<icon src="resources\android\icon\drawable-ldpi-icon.png" density="ldpi"/>
</platform>
<icon src="resources\android\icon\drawable-xhdpi-icon.png"/>
</widget>