Fixed issue with Android 9 and CLEARTEXT communication issue.

This commit is contained in:
Amine 2018-11-20 21:06:05 +01:00
parent d8478ebb01
commit ec87089310
2 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,7 @@
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" android:label="@string/app_name"
android:supportsRtl="true" android:supportsRtl="true"
android:networkSecurityConfig="@xml/network_security_config"
android:theme="@style/NoBar"> android:theme="@style/NoBar">
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true" >
</base-config>
</network-security-config>