Cannot use Angular HTTP client in native app

Hi, we are building a native Ionic app at work and we have to use the third party native HTTP client because we get an error using Angular’s HTTP client for some reason. I can’t remember the exact error but I am wondering if anyone has encountered not being able to use the Angular HTTP client in their native app.



Obviously, knowing the error message is crucial if you want advice on how to fix it, but to answer your generic question: yes, many many people have complained about not being able to use the Angular HttpClient in their native apps.

I would characterize virtually every single one of these complaints that I have seen as “improper server configuration”: most frequently failing to handle CORS or not bothering to set up TLS so that they can use https:// endpoints everywhere in their native apps.

Thinking about it now, I do think it was a CORS issue. Thanks for the response.