In order to keep my app running in the future news, I'm moving to targetSDK 28.
My app communicate with my server where runs JRDC and the first problem I see is this
Accordin to what I see here, I have added to the manifest this code:
Now everything seems to works fine. Am I safe like this or is it better/mandatory to switch to HTTPS instead of HTTP ?
In the second case, it is not clear to me what to do to switch to HTTPS. Do I have to do some modification in my (cloud) server ? Do I need to ask the provider for this service ? Do I have to change something in the firewall policy ? And what to do in the B4A app also ?
Thanks
My app communicate with my server where runs JRDC and the first problem I see is this
B4X:
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to (ip) not permitted by network security policy, Response:
Accordin to what I see here, I have added to the manifest this code:
B4X:
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />)
AND
SetApplicationAttribute(android:usesCleartextTraffic,"true")
Now everything seems to works fine. Am I safe like this or is it better/mandatory to switch to HTTPS instead of HTTP ?
In the second case, it is not clear to me what to do to switch to HTTPS. Do I have to do some modification in my (cloud) server ? Do I need to ask the provider for this service ? Do I have to change something in the firewall policy ? And what to do in the B4A app also ?
Thanks