Skip to content

Instantly share code, notes, and snippets.

@ajithvgiri
Created March 5, 2019 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajithvgiri/f329710f5eb22a05c01ecb4b6e1d3c44 to your computer and use it in GitHub Desktop.
Save ajithvgiri/f329710f5eb22a05c01ecb4b6e1d3c44 to your computer and use it in GitHub Desktop.
Network Clear Text
// create network_security_config.xml file
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">192.168.11.155:8000</domain>
<domain includeSubdomains="true">192.168.11.155</domain>
</domain-config>
</network-security-config>
<-- add these line in Manifest -->
android:networkSecurityConfig="@xml/network_security_config"
android:usesCleartextTraffic="true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment