ionic android net::ERR_CLEARTEXT_NOT_PERMITTED code example
Example 1: net::ERR_CLEARTEXT_NOT_PERMITTED ionic
Add these lines of code on the config.xml file inside tag.
Then go to resources -> android -> xml -> network-security-config.xml and modify your file like below.
localhost
YOUR_API_DOMAIN
Example 2: net::ERR_CLEARTEXT_NOT_PERMITTED
Modify your config.xml like this:
Then go to resources -> android -> xml -> network_security_config.xml
localhost
http://api.servicecity.ca