I have an app that is working fine in IOS and Browser. However i tried to run on android and keep getting this error . I have seen other similar questions here however nothing is working. I cant login/ perform any HTTP requests.
config.xml
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.healthcare" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<platform name="android">
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:usesCleartextTraffic="true" />
</edit-config>
network_security_config.xml
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain>localhost</domain>
</domain-config>
</network-security-config>