Ionic 3 consume api after build


#1

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


#2

You’re using HTTPS, right?


#3

rapropos yes brother’ , i need config something in my xml ?


#4

@rapropos because, like, he does not make any requests, I have to think that as I gave the build ios, he should need to declassify API or something like that in my xml?