Authenticated REST API not working on mobile

Hi,

I am calling an authenticated REST API. Its working fine on browser and ionic-lab as well but when I install on android mobile it doesn’t work there, application just loads no data from REST. below is the code snapshot of how I am calling API.

.factory(‘Organizations’,function($resource){

return $resource(“http://IPAddress/org/organization”,{‘IsNode’ : ‘Y’},{
query:{
method:“GET”,
isArray:true,
headers:{‘Content-Type’:‘application/json’,
‘Access-Control-Allow-Origin’ : ‘*’,
‘withCredentials’: ‘true’,
‘auth-token’: ‘admin password’
}
},
});
})

Ionic-lab result:

Android mobile result

Thanks.