Hello,
I'm developing and Android app that use arcgis runtime api for Android for displaying a map, as indicated here:
https://developers.arcgis.com/android/maps-2d/tutorials/display-a-map/
The map is displaying with no problems until y I have changed the network security configuration for the project. Since the app need to access and endpoint (not relationed with arcgis,) I need to set the following configuration in the network-security-config file:
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system" />
</trust-anchors>
</base-config>
<domain-config>
<domain includeSubdomains="true">devsmart.devsa-ibl-inetum.services</domain>
<domain includeSubdomains="true">pre-arwa-fe-01.sma.conselldemallorca.net</domain>
<domain includeSubdomains="true">prvwww.mallorca.es</domain>
<trust-anchors>
<certificates src="@raw/devsmart_devsa_ibl_inetum"/>
<certificates src="@raw/prvwww_mallorca_es"/>
<certificates src="system"/>
</trust-anchors>
</domain-config>
</network-security-config>
The thing is that If i use this file (the network configuration), then the arcgis map doesn't display. It appears like a white screen. There ins't any log error in logcat. If I remove the network configuration, the maps displays ok.
How can I get arcgis map to work, having a network security file in the project? Is necessary include a domain for argcis in this file?
Thanks