I would like to know how to get my Android app being simulated on an external device to communicate with a local API server running on my machine.
The app is using cordo
Resolved by using https://github.com/apache/cordova-plugin-whitelist plugin and adding in of index.html file.
index.html
For more info, read https://github.com/apache/cordova-plugin-whitelist#content-security-policy.