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 MY API Method in my provider
login(: ContaInterface)
{
return this.http.post(this.url+'api/userLogin',{
"email": account.email,
"password": account.password},{"headers": {
'Accept':'application/json'
}});
Method in login.ts
LoginUser()
{
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