HTTP call on Android Pie CLEARTEXT communication

Hi Guys,


I have a case that Outsystems mobile application use a specific plugin, and that plugin is communicating to server to get some result via HTTP call.

But for Android Pie, all request without encryption will never work (https://stackoverflow.com/questions/51902629/how-to-allow-all-network-connection-types-http-and-https-in-android-9-pie)

One of the suggestion is configuring the AndroidManifest.xml to set the 

android:usesCleartextTraffic="true"


And the other is using

<application android:networkSecurityConfig="@xml/network_security_config">

and create network_security_config.xml 

<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <base-config cleartextTrafficPermitted="true">
        <trust-anchors>
            <certificates src="system" />
        </trust-anchors>
    </base-config>
</network-security-config>


Any idea on how to implement this to Outsystems ?


Thanks

Anyone have idea on this ?