WebView is not loading page in Android 9.0?
This method works for all domains also with Android 9. Add this property to your Manifest like this:
<application
...
android:usesCleartextTraffic="true"
...>
</application>
Actually you should avoid using http, but if there is no way you can do this:
Add @xml/network_security_config into your resources:
<?xml version="1.0" encoding="utf-8"?> <network-security-config> <domain-config cleartextTrafficPermitted="true"> <domain includeSubdomains="true">www.smedk.ru</domain> </domain-config> </network-security-config>
Add this security config to your Manifest like this:
<application ... android:networkSecurityConfig="@xml/network_security_config" ...> ... </application>
Now you allowed using HTTP connection on www.smedk.ru subdomains.
You can read more in https://developer.android.com/training/articles/security-config#CleartextTrafficPermitted
Note: The guidance in this section applies only to apps that target Android 8.1 (API level 27) or lower. Starting with Android 9 (API level 28), cleartext support is disabled by default.