Update to cordova 5.0.0 make $http call error

Hi everyone,

Recently I need to use the repo "Geolocation Background"
And according to this issue https://github.com/christocracy/cordova-plugin-background-geolocation/issues/175, I need to update cordova to v5.0.0

But after I updated it, the $http call to web service is broken. Every request jump to the .error part of $http.

After a couple of hours of scratching my head, I tried to rebuild my code with cordova 4.3.0 and everything is fine. So I think the problem is because of version 5.0.0 of cordova. But if I use 4.3.0 it means that I can’t use the repo “Geolocation Background”

Is there anyway to fix that. I mean no matter it’s 4.3.0 or 5.0.0, how can I use both “Geolocation Background” and $http without error?

Thank you very much

with cordova 5.0.0 they reintroduced the whitelist plugin…
You need to add this plugin and allow your backend-urls.

1 Like

thank you very much, @bengtler