Is anyone able to tell me a little bit about the network security config file and how (or even if I should) be editing it?
I’m having real problems today (all of a sudden) in my app where my HTTP calls are not working on Android devices (well, at least not on the Android 10 device I am testing with today). I have googled like made today and seen seen several posts claiming that you need clearTextTrafficPermitted and includeSubDomains in the network security config file i.e something like:
<?xml version="1.0" encoding="utf-8"?> <network-security-config> <domain-config cleartextTrafficPermitted="true"> <domain includeSubdomains="true">localhost</domain> <domain includeSubdomains="true">(my domain)</domain> </domain-config> </network-security-config>
Do I need to create that file in Android Studio or do I edit the file in the resources/android/xml folder?
And more to the point should I have to do this at all? I have tried adding my domain in the file but it made no difference - unless I was doing it wrong or in the wrong place.