Hi There
I am having a bit of an issue with regards to HTTP requests from my mobile app, when testing with ionic serve the app works perfectly and successfully sends HTTP posts to the server and receives data,
however when running the app on android my HTTP posts fail with the following error -> Http failure response for ionic.
Read a few forum responses and added the following code below hoping it would remedy my situation.
I’ve added the following code to my config.xml
<application android:usesCleartextTraffic="true" />
and (code below) in network_security_config.xml
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">localhost</domain>
<domain includeSubdomains="true">172.20.175.8/</domain>
</domain-config>
I still get the same issue, cannot connect to the server and make HTTP posts.
Please could someone kindly assist me