I have an application that consumes an api, everything is fine when I run the ionic, it works 100%, it makes the requests in the api, everything is ok, but when I do the build in xcode and I open the app, it does not give me an error, but simply does not make any requirement in the API
GIF in ionic serve -> https://gyazo.com/33c7d310f077a83617d48e7ab214d69a
GIF in xcode project -> https://gyazo.com/2fd3913a3e09c167c3378aeac2293b9a
method in my provider
{
return this.http.post(this.url + 'api/userLogin', {
"email": account.email,
"password": account.password
}, {
"headers": {
'Accept':'application/json'
}
});
}
Method in login.ts
{
console.log(this.conta);
this.webservice.login(this.account).subscribe(data => {
if (data.status == true) {
this.webservice.updateTokenApp(data.token_app);
this.navCtrl.setRoot(DashboardPage);
this.presentLoadingDefault();
console.log(data.token_app);
} else {
this.message="login ou senha invalido";
this.presentToast();
}
}
}``
OBS: My app work 100% in ionic serve