Cordova 5.0.0 Android App Can Not Connect To Internet Using Android 4.0.0
I m developing the cordova applicatin using windows 7. The emulator can connect internet with browser but the app failed with network error check the [link here] Using the the late
Solution 1:
Answer is this:
Ajax requests fail after upgrading to Cordova 5.0 + cordova-android@4.0
You need the whitelist plugin.
> cordova plugin add cordova-plugin-whitelist
Then add the following in your config.xml
:
<allow-navigationhref="*" />
Solution 2:
CIF's answer is correct, but for the sake of anybody else viewing this, I figured I'd post the default allow-intent configuration that is generated using cordova create
<pluginname="cordova-plugin-whitelist"version="1" /><accessorigin="*" /><allow-intenthref="http://*/*" /><allow-intenthref="https://*/*" /><allow-intenthref="tel:*" /><allow-intenthref="sms:*" /><allow-intenthref="mailto:*" /><allow-intenthref="geo:*" /><platformname="android"><allow-intenthref="market:*" /></platform><platformname="ios"><allow-intenthref="itms:*" /><allow-intenthref="itms-apps:*" /></platform>
Solution 3:
I am so Sorry, do you add Content-Security-Policy meta tag?if you set Content-Security-Policy meta incorrect,it may cause this problem.
Post a Comment for "Cordova 5.0.0 Android App Can Not Connect To Internet Using Android 4.0.0"