So, i have cloned the tutorial app repo from ionic. I ran
ionic start conference sidemenu
and then i added a simple $http.get('myserver')(I tried with ngResources too).
It worked perfect on chrome, I got all the data back but on angular i only got null data and 404 status on any request I tried to do.
Note: I tried with my hosted server and with a local one. Both fail on Android.
Server is a node.js REST API.
Nothing is printed on the console, so the request does not even get to the server.
Has anyone experienced that or could tell me how can I debug Android apps built with Ionic?
EDIT 1: I don`t know why do you need it but here it is
$http.get('http://server.com/route').success(function (data) {
//handle success
}).error(function (data, status) {
// handle error
});
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…