Android: network_security_config to choose cleartext communication only on local LAN

Viewed 84

the concept of "network_security_config" entry is clear - but I need to access other devices on the local (!) network using HTTP (that is, wallboxes and PV systems and home batteries), but force secure connections into the internet.

I have found no way to enter the local LAN (entering all IP addresses of potential customer's LANs is not possible of course) into the "network_security_config" XML file.

1 Answers

For local http set android:usesCleartextTraffic="true" in AndroidManifest.xml This should not affect https connections.

Related