I have this code in my app
In res>xml>network_security_config.xml
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config>
<domain includeSubdomains="true">MY_DOMAIN.com</domain>
<pin-set>
<pin digest="SHA-256">MY_PIN</pin>
</pin-set>
</domain-config>
</network-security-config>
I found MY_PIN
inserting MY_DOMAIN.com
here: https://report-uri.com/home/pkp_hash
In manifest>AndoridManifest.xml
...
<application
android:networkSecurityConfig="@xml/network_security_config"
I load MY_DOMAIN
in a WebView
But it's like if res>xml>network_security_config.xml
is never opened and checked: if i change MY_PIN
it still working and loading the page of MY_DOMAIN