Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

iOS emulator Xcode problem to build my app

$
0
0

@Armando1986 wrote:

I have problems for an ionic application when I use the emulator iOS does not make requests http what is the problem thanks

this. is my code:

method in providers

test_ced(tel:any){

      let t = {
      telefono:  tel
    }                 
    return this.http.post("https://xxxxxxx/api/jsonphone",JSON.stringify(t)); 
}

use in page.

method() {

      this.datos.test_ced(this.cedula).subscribe((data:any) => {
  
        if(data.status==200){
                 xxx
        }
        else{
               xxxx
          });
        }
       }, err => { this.presentToast("error!!!"); });
}

what you see here this request works on android and on the android emulator, but when I want to emulate on iOS I do not execute the subscribe, immediately send to error

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>