Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

HTTP FAILED: java.net.UnknownServiceException: CLEARTEXT communication to ztdev.co.za not permitted by network security policy

<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <base-config cleartextTrafficPermitted="true" />
</network-security-config>

in manifest

<application
        android:usesCleartextTraffic="true"
    </application>
 
PREVIOUS NEXT
Tagged: #HTTP #CLEARTEXT #communication #permitted #network #security #policy
ADD COMMENT
Topic
Name
2+9 =