Network Security Configuration for Android platform
Convertigo Public Knowledge base
Network Security Configuration for Android platform
Create a DisplayObjects/platforms/Android/res/xml/network_security_config.xml file:
<? xml version= "1.0" encoding= "utf-8"?>
< network-security-config>
< base-config cleartextTrafficPermitted= "true">
< trust-anchors>
< certificates src= "system" />
< certificates src= "user" />
</ trust-anchors>
</ base-config>
</ network-security-config>
Edit DisplayObjects/platforms/Android/config.xml as:
< platform name= "android">
...
< resource-file src= "www/res/xml/network_security_config.xml" target= "app/src/main/res/xml/network_security_config.xml" />
< edit-config xmlns:android= "http://schemas.android.com/apk/res/android" file= "app/src/main/AndroidManifest.xml" mode= "merge" target= "/manifest/application">
< application android:networkSecurityConfig= "@xml/network_security_config" />
</ edit-config>
</ platform>
More information here: Network security configuration | Security | Android Developers
, multiple selections available,
Related content
Can not test Mobile Application on localhost
Can not test Mobile Application on localhost
More like this
How to use Studio behind a Kerberos authentication Proxy ?
How to use Studio behind a Kerberos authentication Proxy ?
More like this
Basic/NTLM Authentication
Basic/NTLM Authentication
More like this
Prevent page access if not logged in and redirect to login page
Prevent page access if not logged in and redirect to login page
More like this
Add custom Java class to a back end project
Add custom Java class to a back end project
More like this
Closing a modal with Android back button
Closing a modal with Android back button
More like this
(c) Convertigo 2023 https://www.convertigo.com