Skip to content Skip to sidebar Skip to footer

Phonegap Android Device Ready But No Ajax

I wonder if my problem is my ajax call is to http, not https. Must I call with https or can I call with http? I am compiling with PhoneGap cloud cli-5.2.0 ( iOS 3.9.1 / Android 4.

Solution 1:

I also use ajax on phonegap app and it work good. You can make call to http. I think the url you called does not exist or there may be connection problems like when data is switched off.

Solution 2:

This is a old question but, possibly the solution will help someone who is googling it.

Add this code to your config.xml file:

<gap:pluginname="cordova-plugin-whitelist"source="npm" /><accessorigin="*" />

because new release of Cordova need whitelist plugin.

Post a Comment for "Phonegap Android Device Ready But No Ajax"