having an issue making a post request for ionic 5 on a ios emulator
if I do a request on an android emulator it works fine, but when I do on a IOS emulator I get this error msg
[console.log]: "POST call in error" {
"headers": {
"normalizedNames": {},
"lazyUpdate": null,
"headers": {}
},
"status": 0,
"statusText": "Unknown Error",
"url": " <my url>.json",
"ok": false,
"name": "HttpErrorResponse",
"message": "Http failure response for <my url>/access_token.json: 0 Unknown Error",
"error": {
"isTrusted": true
}
}
this is how I'm making my request, using http-client in angular
import { HttpClient, HttpParams, HttpHeaders } from '@angular/common/http';
Any help is appreciated!
so it turns out the endpoints I was trying to hit had an expired SSL, which is a no go on IOS. Manage to fix up the ssl and now my app works on IOS, hopefully this help someone else