@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