<?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 Re: IdentifyLayersAsync never completes if 1 layer has refresh interval in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identifylayersasync-never-completes-if-1-layer-has/m-p/1414455#M6201</link>
    <description>&lt;P data-unlink="true"&gt;Hi&amp;nbsp;&lt;BR /&gt;I have tried to set refresh interval on the FeatureLayer in &lt;A href="https://github.com/Esri/arcgis-runtime-samples-android/tree/main/kotlin/identify-layers" target="_self"&gt;this sample&lt;/A&gt;&amp;nbsp;and I couldn't reproduce the problem i.e., the identify seems to work even with the refresh interval set. Can you use the sample and modify it to reproduce the problem? If not, we might have to look into the specifics of the layers being used in your map.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rama&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2024 22:11:37 GMT</pubDate>
    <dc:creator>RamaChintapalli</dc:creator>
    <dc:date>2024-04-23T22:11:37Z</dc:date>
    <item>
      <title>IdentifyLayersAsync never completes if 1 layer has refresh interval</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identifylayersasync-never-completes-if-1-layer-has/m-p/1407052#M6195</link>
      <description>&lt;P&gt;We have a map with ~10 feature layers. We recently wanted one of the layers to auto refresh every 20 seconds so we used&amp;nbsp;featureLayer.setRefreshInterval on that layer.&lt;/P&gt;&lt;P&gt;If we do that, our mapView.identifyLayersAsync done listener is never triggered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt; ListenableFuture&amp;lt;List&amp;lt;IdentifyLayerResult&amp;gt;&amp;gt; identifyTask = mMapView
        .identifyLayersAsync(new android.graphics.Point((int) e.getX(), (int) e.getY()), 22.0, false, 4);
    identifyTask.addDoneListener(() -&amp;gt; {
      try {
        boolean foundItem = false; // &amp;lt;-- HERE
        List&amp;lt;IdentifyLayerResult&amp;gt; results = identifyTask.get();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we have the applicable layer visible, trigger identify and then hide the layer, the listener is triggered immediately. If we load the app without setting refresh interval on the layer it works.&lt;/P&gt;&lt;P&gt;We have the exact same code and layers on the iOS side as well, and there identify works as expected with refreshInterval.&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;BR /&gt;&lt;BR /&gt;Edit: We are running 100.15.4, I tried downgrading to 100.13.0 (oldest our app can run) with the same results.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 11:17:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identifylayersasync-never-completes-if-1-layer-has/m-p/1407052#M6195</guid>
      <dc:creator>EirikH</dc:creator>
      <dc:date>2024-04-08T11:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyLayersAsync never completes if 1 layer has refresh interval</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identifylayersasync-never-completes-if-1-layer-has/m-p/1412227#M6200</link>
      <description>&lt;P&gt;Anyone from Esri seeing the same or able to test?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 12:51:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identifylayersasync-never-completes-if-1-layer-has/m-p/1412227#M6200</guid>
      <dc:creator>EirikH</dc:creator>
      <dc:date>2024-04-19T12:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyLayersAsync never completes if 1 layer has refresh interval</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identifylayersasync-never-completes-if-1-layer-has/m-p/1414455#M6201</link>
      <description>&lt;P data-unlink="true"&gt;Hi&amp;nbsp;&lt;BR /&gt;I have tried to set refresh interval on the FeatureLayer in &lt;A href="https://github.com/Esri/arcgis-runtime-samples-android/tree/main/kotlin/identify-layers" target="_self"&gt;this sample&lt;/A&gt;&amp;nbsp;and I couldn't reproduce the problem i.e., the identify seems to work even with the refresh interval set. Can you use the sample and modify it to reproduce the problem? If not, we might have to look into the specifics of the layers being used in your map.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rama&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 22:11:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identifylayersasync-never-completes-if-1-layer-has/m-p/1414455#M6201</guid>
      <dc:creator>RamaChintapalli</dc:creator>
      <dc:date>2024-04-23T22:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyLayersAsync never completes if 1 layer has refresh interval</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identifylayersasync-never-completes-if-1-layer-has/m-p/1416369#M6203</link>
      <description>&lt;P&gt;Thanks for testing and the suggestion, I will try to reproduce. I'm using java and that sample was Kotlin, will try to use the java sample in my testing.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 06:40:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identifylayersasync-never-completes-if-1-layer-has/m-p/1416369#M6203</guid>
      <dc:creator>EirikH</dc:creator>
      <dc:date>2024-04-29T06:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: IdentifyLayersAsync never completes if 1 layer has refresh interval</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identifylayersasync-never-completes-if-1-layer-has/m-p/1516598#M6221</link>
      <description>&lt;P&gt;Thanks again for your reply,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/17660"&gt;@RamaChintapalli&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;So the issue was actually a very nice gotcha in the runtime SDK.&lt;BR /&gt;&lt;BR /&gt;For iOS the refreshInterval property on a AGSFeatureLayer is specified in seconds, but for Android the setRefreshInterval method expects milliseconds. We have a shared config for both plattforms in our app so it was set to 20 (seconds) on iOS and thus &lt;STRONG&gt;20 milliseconds&lt;/STRONG&gt; on Android which seem to have caused this &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Android:&amp;nbsp;&lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/layers/FeatureLayer.html#setRefreshInterval(long)" target="_blank"&gt;https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/layers/FeatureLayer.html#setRefreshInterval(long)&lt;/A&gt;&lt;BR /&gt;iOS:&amp;nbsp;&lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_feature_layer.html#ae8e926cc4aa917fbf383156fb28fa857" target="_blank"&gt;https://developers.arcgis.com/ios/api-reference/interface_a_g_s_feature_layer.html#ae8e926cc4aa917fbf383156fb28fa857&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 11:25:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/identifylayersasync-never-completes-if-1-layer-has/m-p/1516598#M6221</guid>
      <dc:creator>EirikH</dc:creator>
      <dc:date>2024-08-08T11:25:12Z</dc:date>
    </item>
  </channel>
</rss>

