We provide complete mobile and web apps development solutions

Thursday, August 15, 2019

ERR_CLEARTEXT_NOT_PERMITTED in Android

/api/users/login net::ERR_CLEARTEXT_NOT_PERMITTED

I am getting ERR_CLEARTEXT_NOT_PERMITTED error in android application using ionic.



To allow network connections of type http, https in Android , enable

cleartextTrafficPermitted="true"

create a file  in this path  res/xml/network_security_config.xml

network_security_config.xml:
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <base-config cleartextTrafficPermitted="true">
        <trust-anchors>
            <certificates src="system" />
        </trust-anchors>
    </base-config>
</network-security-config>

0 coment�rios:

Post a Comment

Online Training

Your Name :
Your Email: (required)
Your Message: (required)

Powered by Blogger.

Recent Posts

Find Us On Facebook

Popular Posts