The solution is to go to ~/resources/android/xml/network_security_config.xml in your ioinc app and add the 10.0.2.2 to the security config as below.
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">localhost</domain>
<domain includeSubdomains="true">10.0.2.2</domain>
</domain-config>
</network-security-config>