/
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
Related content
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
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
How do you set image source in your NgxApp?
How do you set image source in your NgxApp?
More like this
Changing PWA icon, Project Name, and Title bar Name
Changing PWA icon, Project Name, and Title bar Name
More like this
Project deployment fails on SSL certificate secured Server
Project deployment fails on SSL certificate secured Server
More like this
(c) Convertigo 2023 https://www.convertigo.com