Created
March 5, 2019 05:44
-
-
Save ajithvgiri/f329710f5eb22a05c01ecb4b6e1d3c44 to your computer and use it in GitHub Desktop.
Network Clear Text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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