Problem with my REST

hi everyone.

I have a problem with my Service Rest, not working in my emulator devices. but in my local host working well, like this

in my emulator devices not working well, like this

my code is this:
ionic.project file
“name”: “zupaios”,
“app_id”: “”,
“proxies”: [{
“path”: “/zupa”,
“proxyUrl”: “

serveces.js file
var zupaio = angular.module(‘zupaio.zupafactoryio’, [‘ngCordova’]);


    var storeShop = [];
    var storeProducts = [];

    db = window.openDatabase("zupas.db", "1.0", "Data Base ZUPA-PHONE", 200000);

    return {
            return $http.get('/zupa/categories');
// other functions


controller.js file

// list all categories
zupaio.controller(‘ListCategoryCtrl’, function($scope,$http,zupafactoryio,$ionicLoading,$timeout) {

    $scope.loading = ${
        content: '<ion-spinner icon="android"></ion-spinner>',
        animation: 'fade-in',
        showBackdrop: false,
        maxWidth: 50,
        showDelay: 0

    $timeout(function () {
        zupafactoryio.ZupaListCategory().then(function(categories){ // CHARGE ALL CATEGORIES
            $scope.categories =;
            categoriesvar  =;

    }, 3000);


please help me I don’t know why not show me in my emulator devices, but in local host working well
or I need to install a plugin

thank for your attention.

Don’t use your proxy link when you use the emulator or your real device.
use: $http.get('');
instead of: $http.get('/zupa/categories');
I hope that this would be helpful.

but when device is offline what
as they manage?

it’s working thank you very much

1 Like