I got the error while calling simple php API. This api working fine on web browser and Android devices. But problem with iOS devices. I tried all solutions but none is working. I working on latest ionic. Thanks in advance.
Error
{"headers":{"normalizedNames":{},"lazyUpdate":null,"headers":{}},"status":0,"statusText":"Unknown Error","url":"http://xxx.xxx.php/wp-json/acf/v3/options/options/series","ok":false,"name":"HttpErrorResponse","message":"Http failure response for http://xxx.xxx.php/wp-json/acf/v3/options/options/series: 0 Unknown Error","error":{"isTrusted":true}}
API Call code
this.restApiService.getData().subscribe(res => {
for (var stateindex = 0; stateindex < res['series'].length; stateindex++) {
this.stateList.push(res['series'][stateindex]);
}
}, err => {
console.log(err);
});