<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ArcGIS maps doesn't display when I use the network-security-confing in manifest in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-maps-doesn-t-display-when-i-use-the-network/m-p/1049504#M5466</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm developing and Android app that use arcgis runtime api for Android for displaying a map, as indicated here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/android/maps-2d/tutorials/display-a-map/" target="_blank"&gt;https://developers.arcgis.com/android/maps-2d/tutorials/display-a-map/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;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&amp;nbsp; (not relationed with arcgis,) I need to set the following configuration in the network-security-config file:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;?&lt;/SPAN&gt;&lt;SPAN&gt;xml version&lt;/SPAN&gt;&lt;SPAN&gt;="1.0" &lt;/SPAN&gt;&lt;SPAN&gt;encoding&lt;/SPAN&gt;&lt;SPAN&gt;="utf-8"&lt;/SPAN&gt;&lt;SPAN&gt;?&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&amp;lt;&lt;SPAN&gt;network-security-config&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;    &amp;lt;&lt;SPAN&gt;base-config &lt;/SPAN&gt;&lt;SPAN&gt;cleartextTrafficPermitted&lt;/SPAN&gt;&lt;SPAN&gt;="true"&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;        &amp;lt;&lt;SPAN&gt;trust-anchors&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;            &amp;lt;&lt;SPAN&gt;certificates &lt;/SPAN&gt;&lt;SPAN&gt;src&lt;/SPAN&gt;&lt;SPAN&gt;="system" &lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;        &amp;lt;/&lt;SPAN&gt;trust-anchors&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;    &amp;lt;/&lt;SPAN&gt;base-config&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;    &amp;lt;&lt;SPAN&gt;domain-config&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;        &amp;lt;&lt;SPAN&gt;domain &lt;/SPAN&gt;&lt;SPAN&gt;includeSubdomains&lt;/SPAN&gt;&lt;SPAN&gt;="true"&lt;/SPAN&gt;&amp;gt;devsmart.devsa-ibl-inetum.services&amp;lt;/&lt;SPAN&gt;domain&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;        &amp;lt;&lt;SPAN&gt;domain &lt;/SPAN&gt;&lt;SPAN&gt;includeSubdomains&lt;/SPAN&gt;&lt;SPAN&gt;="true"&lt;/SPAN&gt;&amp;gt;pre-arwa-fe-01.sma.conselldemallorca.net&amp;lt;/&lt;SPAN&gt;domain&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;         &amp;lt;&lt;SPAN&gt;domain &lt;/SPAN&gt;&lt;SPAN&gt;includeSubdomains&lt;/SPAN&gt;&lt;SPAN&gt;="true"&lt;/SPAN&gt;&amp;gt;prvwww.mallorca.es&amp;lt;/&lt;SPAN&gt;domain&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;        &amp;lt;&lt;SPAN&gt;trust-anchors&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;            &amp;lt;&lt;SPAN&gt;certificates &lt;/SPAN&gt;&lt;SPAN&gt;src&lt;/SPAN&gt;&lt;SPAN&gt;="@raw/devsmart_devsa_ibl_inetum"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;            &amp;lt;&lt;SPAN&gt;certificates &lt;/SPAN&gt;&lt;SPAN&gt;src&lt;/SPAN&gt;&lt;SPAN&gt;="@raw/prvwww_mallorca_es"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;             &amp;lt;&lt;SPAN&gt;certificates &lt;/SPAN&gt;&lt;SPAN&gt;src&lt;/SPAN&gt;&lt;SPAN&gt;="system"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;        &amp;lt;/&lt;SPAN&gt;trust-anchors&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;    &amp;lt;/&lt;SPAN&gt;domain-config&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;&amp;lt;/&lt;SPAN&gt;network-security-config&lt;/SPAN&gt;&amp;gt;&lt;/PRE&gt;&lt;P&gt;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.&amp;nbsp; If I remove the network configuration, the maps displays ok.&amp;nbsp;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Apr 2021 10:35:53 GMT</pubDate>
    <dc:creator>cesarcercadillo</dc:creator>
    <dc:date>2021-04-21T10:35:53Z</dc:date>
    <item>
      <title>ArcGIS maps doesn't display when I use the network-security-confing in manifest</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-maps-doesn-t-display-when-i-use-the-network/m-p/1049504#M5466</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm developing and Android app that use arcgis runtime api for Android for displaying a map, as indicated here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/android/maps-2d/tutorials/display-a-map/" target="_blank"&gt;https://developers.arcgis.com/android/maps-2d/tutorials/display-a-map/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;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&amp;nbsp; (not relationed with arcgis,) I need to set the following configuration in the network-security-config file:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;?&lt;/SPAN&gt;&lt;SPAN&gt;xml version&lt;/SPAN&gt;&lt;SPAN&gt;="1.0" &lt;/SPAN&gt;&lt;SPAN&gt;encoding&lt;/SPAN&gt;&lt;SPAN&gt;="utf-8"&lt;/SPAN&gt;&lt;SPAN&gt;?&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&amp;lt;&lt;SPAN&gt;network-security-config&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;    &amp;lt;&lt;SPAN&gt;base-config &lt;/SPAN&gt;&lt;SPAN&gt;cleartextTrafficPermitted&lt;/SPAN&gt;&lt;SPAN&gt;="true"&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;        &amp;lt;&lt;SPAN&gt;trust-anchors&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;            &amp;lt;&lt;SPAN&gt;certificates &lt;/SPAN&gt;&lt;SPAN&gt;src&lt;/SPAN&gt;&lt;SPAN&gt;="system" &lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;        &amp;lt;/&lt;SPAN&gt;trust-anchors&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;    &amp;lt;/&lt;SPAN&gt;base-config&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;    &amp;lt;&lt;SPAN&gt;domain-config&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;        &amp;lt;&lt;SPAN&gt;domain &lt;/SPAN&gt;&lt;SPAN&gt;includeSubdomains&lt;/SPAN&gt;&lt;SPAN&gt;="true"&lt;/SPAN&gt;&amp;gt;devsmart.devsa-ibl-inetum.services&amp;lt;/&lt;SPAN&gt;domain&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;        &amp;lt;&lt;SPAN&gt;domain &lt;/SPAN&gt;&lt;SPAN&gt;includeSubdomains&lt;/SPAN&gt;&lt;SPAN&gt;="true"&lt;/SPAN&gt;&amp;gt;pre-arwa-fe-01.sma.conselldemallorca.net&amp;lt;/&lt;SPAN&gt;domain&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;         &amp;lt;&lt;SPAN&gt;domain &lt;/SPAN&gt;&lt;SPAN&gt;includeSubdomains&lt;/SPAN&gt;&lt;SPAN&gt;="true"&lt;/SPAN&gt;&amp;gt;prvwww.mallorca.es&amp;lt;/&lt;SPAN&gt;domain&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;        &amp;lt;&lt;SPAN&gt;trust-anchors&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;            &amp;lt;&lt;SPAN&gt;certificates &lt;/SPAN&gt;&lt;SPAN&gt;src&lt;/SPAN&gt;&lt;SPAN&gt;="@raw/devsmart_devsa_ibl_inetum"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;            &amp;lt;&lt;SPAN&gt;certificates &lt;/SPAN&gt;&lt;SPAN&gt;src&lt;/SPAN&gt;&lt;SPAN&gt;="@raw/prvwww_mallorca_es"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;             &amp;lt;&lt;SPAN&gt;certificates &lt;/SPAN&gt;&lt;SPAN&gt;src&lt;/SPAN&gt;&lt;SPAN&gt;="system"&lt;/SPAN&gt;/&amp;gt;&lt;BR /&gt;        &amp;lt;/&lt;SPAN&gt;trust-anchors&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;    &amp;lt;/&lt;SPAN&gt;domain-config&lt;/SPAN&gt;&amp;gt;&lt;BR /&gt;&amp;lt;/&lt;SPAN&gt;network-security-config&lt;/SPAN&gt;&amp;gt;&lt;/PRE&gt;&lt;P&gt;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.&amp;nbsp; If I remove the network configuration, the maps displays ok.&amp;nbsp;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 10:35:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-maps-doesn-t-display-when-i-use-the-network/m-p/1049504#M5466</guid>
      <dc:creator>cesarcercadillo</dc:creator>
      <dc:date>2021-04-21T10:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS maps doesn't display when I use the network-security-confing in manifest</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-maps-doesn-t-display-when-i-use-the-network/m-p/1052540#M5469</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for bringing this to our notice. It is a known issue in our SDK when the&amp;nbsp;&lt;SPAN&gt;network security config contains one or more domain-config elements, the platform certificate verification fails with CertificateException and causes the map fails to load. We will address this issue. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;At the meantime, if you remove the&amp;nbsp;domain-config elements from the network security config, the map loads. If your intention of using the&amp;nbsp;domain-config elements is to trust self-signed certificates you can use this API&amp;nbsp;&lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/security/AuthenticationManager.html#setSelfSignedCertificateListener(com.esri.arcgisruntime.security.SelfSignedCertificateListener)" target="_self"&gt;AuthenticationManager.setSelfSignedCertificateListener​&lt;/A&gt;&amp;nbsp;instead of the domain-config elements. The following code snippet shows an example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="kotlin"&gt;            AuthenticationManager.setSelfSignedCertificateListener(SelfSignedCertificateListener { chains, s -&amp;gt;
            try {
                chains[0].checkValidity()
                if (chains[0].issuerDN.name == "xxx") {
                    return@SelfSignedCertificateListener SelfSignedResponse(true, true)
                }
            } catch (cee: CertificateExpiredException) {
            } catch (cnyve: CertificateNotYetValidException) {
            }
            null
        })&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 23:18:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-maps-doesn-t-display-when-i-use-the-network/m-p/1052540#M5469</guid>
      <dc:creator>XuemingWu</dc:creator>
      <dc:date>2021-04-28T23:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS maps doesn't display when I use the network-security-confing in manifest</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-maps-doesn-t-display-when-i-use-the-network/m-p/1269081#M6003</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We're facing here the same problem but our configuration doesn't need ssl verification instead allowing http traffic on specific addresses :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;network-security-config&amp;gt;
    &amp;lt;domain-config cleartextTrafficPermitted="true"&amp;gt;
        &amp;lt;domain&amp;gt;192.168.24.1&amp;lt;/domain&amp;gt;      
        &amp;lt;domain&amp;gt;127.0.0.1&amp;lt;/domain&amp;gt;
    &amp;lt;/domain-config&amp;gt;
&amp;lt;/network-security-config&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;How can we achieve this and use Arcgis map without allowing http traffic for everything ?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 18:39:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-maps-doesn-t-display-when-i-use-the-network/m-p/1269081#M6003</guid>
      <dc:creator>YoussefMAHERZI</dc:creator>
      <dc:date>2023-03-17T18:39:49Z</dc:date>
    </item>
  </channel>
</rss>

