I have a question about this code:
I'm using this function for get data from ws. Communicate with ws is in https.
public detailsuser(): Observable<Users> {
return this.http.get(Api.getUrl(Api.URLS.details),
{
headers: new HttpHeaders({'X-Token': this.currentUser.token}),
observe: 'response'
})
.pipe(map((response: HttpResponse<any>) => {
console.log('response', response);
return response.body.map(data => {
return new Users(data);
});
}));
}
This function works good in Android < v9
I try this project to run in Simulator Iphone 6 , but this function doesn't work. Show
'name': HttpErrorResponse 'message': Http failure response from https://www.............../details
Can you share with me any idea please, what happens in IOS?