Android Question CLEAR TEXT Over http

nelson costa

Member
Licensed User
JAVA ERROR :Cannot send data to the server. CLEARTEXT communication to not permitted by network security policy

How by-pass this block from Android 9 using http


Tanks. Nelson.

obs: (About https) using this feature type is not an option
 

amidgeha

Active Member
Licensed User
Longtime User
JAVA ERROR :Cannot send data to the server. CLEARTEXT communication to not permitted by network security policy

How by-pass this block from Android 9 using http


Tanks. Nelson.

obs: (About https) using this feature type is not an option
You can add this line to your Manifest:
SetApplicationAttribute(android:usesCleartextTraffic, "true")
 
Upvote 0

amidgeha

Active Member
Licensed User
Longtime User
JAVA ERROR :Cannot send data to the server. CLEARTEXT communication to not permitted by network security policy

How by-pass this block from Android 9 using http


Tanks. Nelson.

obs: (About https) using this feature type is not an option
In manifest add this line: SetApplicationAttribute(android:usesCleartextTraffic, "true")
 
Upvote 0
Top