• This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • kevin
    Keymaster
    Postcount 41

    Hi All,

    I just this error when I call web api in Android: Cannot send data to the server. CLEARTEXT communication to not permitted by network security policy. Anybody can help me resolve it?


    kevin
    Keymaster
    Postcount 41

    You can add android:usesCleartextTraffic=”true” to application tag in AndroidManifest.xml as below:

    <?xml version=”1.0″ encoding=”utf-8″?>
    <manifest …>
    <uses-permission android:name=”android.permission.INTERNET” />
    <application

    android:usesCleartextTraffic=”true”
    …>

    </application>
    </manifest>

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Top