Cannot track HTTP page Webview in Android 9 Pie.¶
To perform HTTP communication with an OS after Android 9 Pie, you will need to explicitly designate the authorizing HTTP communication domain.
Complete the below settings within the app.
Add Network Security Configuration file¶
Add the below text to AndroidManifest.xml and set it so that the app will read the Network Security Configuration file.
<?xml version="1.0" encoding="utf-8"?>
<manifest ... >
<application android:networkSecurityConfig="@xml/network_security_config"
... >
...
</application>
</manifest>
Add the domain that will authorize HTTP communication.¶
Add the domain that will authorize HTTP communication into here res/xml/network_security_config.xml
as below.
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">cdn.reproio.com</domain>
<domain includeSubdomains="true"> ... </domain>
</domain-config>
</network-security-config>