Problem with AJAX calls on PhoneGap project?

Using Adobe PhoneGap Build… ajax calls working fine in PhoneGap dev app, but not working once you build the app?  Getting 404 errors when the server is not even being hit?

After much searching, this is what fixed it:

Remove browser plugin (in this case did not need/want it)

phonegap platform remove browser

Add the whitelist plugin:

cordova plugin add cordova-plugin-whitelist

Credit here:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s