Explorar o código

Explicitly opt in to clearTextTraffic

According to docs, cleartext support is disabled by starting with Android 9.

Ref: https://developer.android.com/training/articles/security-config#CleartextTrafficPermitted
estasney %!s(int64=2) %!d(string=hai) anos
pai
achega
7eb382596e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/src/main/AndroidManifest.xml

+ 1 - 0
app/src/main/AndroidManifest.xml

@@ -8,6 +8,7 @@
     <uses-permission android:name="android.permission.INTERNET" />
 
     <application
+        android:usesCleartextTraffic="true"
         android:allowBackup="false"
         android:icon="@mipmap/ic_launcher"
         android:label="@string/app_name"