so I am messing up with the sails.js library and i am trying to create myself a local API so I can request from my android app the data. the app working just fine locally when I test it on the browser and the emulator but when I try to build it to the android the API data is not displaying.
I have no server side code to show you because I created my API only from the chrome's address bar(as part of the new sails.js features).
this is my angular controller(working locally on the browser and emulator):
.controller('PlaylistsCtrl', function($scope, getPosts) {
getPosts.getFoo('http://127.0.0.10:1337/user').then(function(data) {
// this will execute when the
// AJAX call completes.
$scope.items = data;
});
})
For the android app i am using with the Ionic Framework(which is using cordova).
EDIT: Eventually the problem was that that i needed to use the computer ip(ipconfig) and not the network ip.