Can't send request to server


when run ionic run android in a device.
always appear the errors (Debug info by chrome)
Failed to load resource: the server responded with a status of 404 (Not Found)

I make sure that the page can be opened in browser

when test it in an emulator
it shows:

device ready has not fired after 5 seconds. cordova.js:1185
Channel not fired: onPluginsReady cordova.js:1178
Channel not fired: onCordovaReady
GET 404 (Not Found) ionic.bundle.js:18526

How to fix that?

what is your version of cordova?

If it’s 5.0.0, I think the problem is because of that.

When I used cordova 4.3.0, requests with $http to the server is fine, no problem. But since I update the cordova to v5.0.0, none of my request works

add whitelist plugin and allow your backend urls:

1 Like

yep, that works. fixed yesterday already.

how did you fixed it please. on the same problem for two days now

@samdeniyi you have to add the Whitelist Plugin

@cyruxx thanks works perfeectly, almost done with the app