<?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: Unable to Sync PrePlanned Map Area in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090759#M7068</link>
    <description>&lt;P&gt;Apologies. I misunderstood your question about changing the update time to trigger a scheduled updates packaging. My mistake (your question was pretty clear!). I'll have to check with the team to see if this would trigger packaging things up, or if there might be some other way (e.g. a REST call).&lt;/P&gt;</description>
    <pubDate>Fri, 20 Aug 2021 12:10:08 GMT</pubDate>
    <dc:creator>Nicholas-Furness</dc:creator>
    <dc:date>2021-08-20T12:10:08Z</dc:date>
    <item>
      <title>Unable to Sync PrePlanned Map Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090231#M7060</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Following the example "ApplyScheduledUpdatesToPreplannedMapAreaViewController" in the arcgis-ios-sdk-samples app, I am having an issue syncing a map. I can download the initial map area and us it without any issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;The problem:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I try to sync the offline map by using&amp;nbsp;AGSOfflineMapSyncTask and calling the&amp;nbsp;checkForUpdates. No matter what changes are made to the map area in AGOL, the&amp;nbsp;checkForUpdates function returns 'none' It does not recognize that there are updates.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Question:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;How do I get the&amp;nbsp;AGSOfflineMapSyncTask.checkForUpdates to recognize that there are updated for the map area?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 00:54:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090231#M7060</guid>
      <dc:creator>RTC</dc:creator>
      <dc:date>2021-08-19T00:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Sync PrePlanned Map Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090426#M7061</link>
      <description>&lt;P&gt;Hi. Thanks for the question. Here's what I think is happening.&lt;/P&gt;&lt;P&gt;Scheduled updates are pre-packaged downloads of changes that are created on the server at an interval determined by the web map's owner (perhaps once a day, at 6am, in preparation for mobile users to start their day with all the updates from the previous 24 hours). So, if you make changes to the web map, there will only be scheduled updates available for download &lt;EM&gt;after&lt;/EM&gt; the next scheduled packaging (in the above example, this would be after 6am).&amp;nbsp;In your case, I'm guessing that the next scheduled packaging hasn't happened yet, so Runtime won't see an update when you call checkForUpdates (remember, that just checks for packaged up scheduled updates).&lt;/P&gt;&lt;P&gt;The scheduled updates enhancement to preplanned maps was created to help large mobile workforces efficiently keep their offline maps up to date, but scheduled updates only provide a read-only offline map experience.&amp;nbsp;&lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/offline/offline-maps/scheduled-updates/" target="_blank" rel="noopener"&gt;This page&lt;/A&gt; covers scheduled updates in more detail.&lt;/P&gt;&lt;P&gt;If you want to immediately pick up changes made in the preplanned web map, you will need to modify your code to not opt in to the scheduled update workflow and just do a regular sync.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 15:46:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090426#M7061</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2021-08-19T15:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Sync PrePlanned Map Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090570#M7063</link>
      <description>&lt;P&gt;Hello Nicholas,&lt;/P&gt;&lt;P&gt;Thank you for your reply, this is helpful! I did try several tests where I set the update time to a future date/time and then tried to sync the map after that future time but still got the same "none" reply when calling &lt;SPAN class="s1"&gt;checkForUpdates&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;QUESTIONS:&lt;/P&gt;&lt;P&gt;1) Is there a minimum time interval for the updates? For example if I make changes to the map area in AGOL and then set the update time to several hours in the future, should that trigger an update or is there a 24 hour minimum?&lt;/P&gt;&lt;P&gt;2) Would changing the map area's bounds (reshape the area) trigger an update or will only changes to data trigger an update for sync?&lt;/P&gt;&lt;P&gt;3) The Esri example in&lt;SPAN class="s1"&gt; "ApplyScheduledUpdatesToPreplannedMapAreaViewController" in the arcgis-ios-sdk-samples app assumes the mapview has the map loaded and accessible. Is there an example or best practice for syncing multiple preplanned maps when they are not in use, potentially as a background task?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 19:54:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090570#M7063</guid>
      <dc:creator>RTC</dc:creator>
      <dc:date>2021-08-19T19:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Sync PrePlanned Map Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090603#M7064</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm not sure why this was marked as a solution. The information was helpful but it did not solve the issue. I do not get any updates no matter what the time interval is set to so no solution have been discovered. I also removed the scheduled update enhancement but still no updates are downloaded.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 20:46:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090603#M7064</guid>
      <dc:creator>RTC</dc:creator>
      <dc:date>2021-08-19T20:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Sync PrePlanned Map Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090608#M7065</link>
      <description>&lt;P&gt;Hi RTC.&lt;/P&gt;&lt;P&gt;Glad that helped. For your other questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRIKE&gt;You don't set a time in the ArcGIS Online interface, merely an interval&lt;/STRIKE&gt;. I'll have to check to see what the minimum interval is but it seems to be 24 hours through the ArcGIS Online interface and the Python API.&lt;/LI&gt;&lt;LI&gt;I'll have to check on this.&lt;/LI&gt;&lt;LI&gt;Absolutely, you would still create an AGSMap object pointing at each already-downloaded offline map (you use the AGSMobileMapPackage to re-open a previously downloaded map, see &lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/offline/offline-maps/working-with-offline-maps/#access" target="_blank" rel="noopener"&gt;here&lt;/A&gt;) and then &lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/offline/offline-maps/working-with-offline-maps/#synchronize" target="_blank" rel="noopener"&gt;create an AGSOfflineMapSyncTask&lt;/A&gt; for each AGSMap.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 12:07:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090608#M7065</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2021-08-20T12:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Sync PrePlanned Map Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090620#M7066</link>
      <description>&lt;P&gt;Hi Nicholas,&lt;/P&gt;&lt;P&gt;In your reply - "You don't set a time in the ArcGIS Online interface" - Can you clarify this. There is a setting for Time in AGOL, can you explain what this time is for?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RTC_0-1629407933558.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21217iB0AA13CF8EC5E946/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RTC_0-1629407933558.png" alt="RTC_0-1629407933558.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 21:19:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090620#M7066</guid>
      <dc:creator>RTC</dc:creator>
      <dc:date>2021-08-19T21:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Sync PrePlanned Map Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090758#M7067</link>
      <description>&lt;P&gt;My mistake. I noticed your reply was marked as a solution and figured you must have picked that instead of mine. Thanks for correcting this.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 12:05:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090758#M7067</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2021-08-20T12:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Sync PrePlanned Map Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090759#M7068</link>
      <description>&lt;P&gt;Apologies. I misunderstood your question about changing the update time to trigger a scheduled updates packaging. My mistake (your question was pretty clear!). I'll have to check with the team to see if this would trigger packaging things up, or if there might be some other way (e.g. a REST call).&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 12:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090759#M7068</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2021-08-20T12:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Sync PrePlanned Map Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090884#M7069</link>
      <description>&lt;P&gt;No worries, thank you for looking into this for me!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 17:54:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1090884#M7069</guid>
      <dc:creator>RTC</dc:creator>
      <dc:date>2021-08-20T17:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Sync PrePlanned Map Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1091995#M7075</link>
      <description>&lt;P&gt;Hi Nicholas,&lt;/P&gt;&lt;P&gt;I still have not been able to get the preplanned map area sync to work. I have tried removing the scheduled updates and just run a manual update but it never seems to download the updates. Any ideas on what the issue could be?&lt;/P&gt;&lt;P&gt;How is the sample "canyonlands" map setup in &lt;SPAN&gt;"ApplyScheduledUpdatesToPreplannedMapAreaViewController" in the arcgis-ios-sdk-samples app? The example seems to work but if I replace the canyonlands map with one of my maps, it never detects an update as being available.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for you assistance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 00:38:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1091995#M7075</guid>
      <dc:creator>RTC</dc:creator>
      <dc:date>2021-08-25T00:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Sync PrePlanned Map Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1092324#M7076</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I've spoken with the team and 24 hours is the minimum interval between updates being packaged up. Changing the packaging time will not trigger another packaging within 24 hours of the last packaging.&lt;/P&gt;&lt;P&gt;As for why a manual sync doesn't get the updates: what are the updates you are making? You need to update feature data in layers in your web map (and of course the services behind those layers need to be enabled for offline use).&lt;/P&gt;&lt;P&gt;Once you've made feature updates in the web map (add/remove/update features) then they will be picked up in an offline map sync.&lt;/P&gt;&lt;P&gt;If you are using scheduled updates for the sync, they won't be picked up until after the next packaging run. If you are not using scheduled updates, they should be picked up immediately.&lt;/P&gt;&lt;P&gt;The canyonlands sample uses an already-downloaded preplanned offline map as its "snapshot" starting point. It copies it into a working folder and opens it. The web map has scheduled packages that were generated after that offline map was downloaded, so they show up as available updates in the sample. Once you have applied the updates to the copy in the working folder, if you were to check again using that working copy, there would be no more updates available. The working copy is overwritten by the "snapshot" copy each time you run the sample.&lt;BR /&gt;&lt;BR /&gt;For your map you need to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a web map with offline-enabled feature layers.&lt;/LI&gt;&lt;LI&gt;Configure the preplanned map area for your web map and turn on the "Enable scheduled updates" toggle.&lt;/LI&gt;&lt;LI&gt;Wait for the original preplanned offline map to package up.&lt;/LI&gt;&lt;LI&gt;Download the preplanned offline map to the device, being sure to opt in to scheduled updates (this should be picked up by default).&lt;/LI&gt;&lt;LI&gt;Make edits to offline enabled feature data in your web map.&lt;/LI&gt;&lt;LI&gt;Wait until after the next packaging, which will pick up your web map data edits as a scheduled update package. You cannot bring the packaging time forward for this to force packaging any sooner than 24 hours after step 3.&lt;/LI&gt;&lt;LI&gt;Call sync using the offline map downloaded in step 4 (and making sure to use scheduled updates).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;You can still use a web map that is set up for scheduled updates with regular sync, but you have to ensure the settings when you &lt;EM&gt;download&lt;/EM&gt; the offline map opt out of scheduled updates. Perhaps that's what you're seeing: maybe you downloaded the offline map without opting out of scheduled updates, and then when you sync you're trying a regular sync. That won't work (and I think I misled you there - I wasn't explicit that you need to do this with the download as well as the later sync). You could look at the &lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_offline_map_sync_result.html" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;AGSOfflineMapSyncResult&lt;/STRONG&gt;&lt;/A&gt; you get back in the sync completion to see if there are errors and look at the errors on each layer to learn more.&lt;/P&gt;&lt;P&gt;Let me know if that helps.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 17:20:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1092324#M7076</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2021-08-25T17:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Sync PrePlanned Map Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1092370#M7077</link>
      <description>Hello Nicholas,&lt;BR /&gt;&lt;BR /&gt;Thanks for the detailed response! I will follow your guidelines and do&lt;BR /&gt;some more research. I believe my past tests did follow the same&lt;BR /&gt;workflow you outlined but now knowing about the 24 hour limit may produce&lt;BR /&gt;different results. I will let you know what I find out.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Aug 2021 18:18:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1092370#M7077</guid>
      <dc:creator>RTC</dc:creator>
      <dc:date>2021-08-25T18:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Sync PrePlanned Map Area</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1095122#M7079</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello Nicholas,&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I was hoping to get some clarification on a few items. Based on your advice, I ran a few more tests and wanted to confirm that what I am seeing is correct. All my tests are for read-only (download) updates from AGOL, not bi-directional sync.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;OL&gt;&lt;LI&gt;If the "Enable Scheduled Updates" toggle is enabled (true), updates will package and only be made available at the next scheduled time (24 hours later) even if the map is updated manually by using the "Update" button.&lt;/LI&gt;&lt;LI&gt;If the "Enable Scheduled Updates" toggle is NOT enabled (false), updates will package automatically at the next scheduled&amp;nbsp;time (24 hours later) BUT if the map is updated manually by using the "Update" button, the updates will be available immediately.&lt;/LI&gt;&lt;LI&gt;If the Update Scheduled TIME is changed AFTER the preplanned map is initially downloaded, the "checkForUpdate" function will return&amp;nbsp;an indeterminate&amp;nbsp;state. To correct this, the preplanned map needs to be downloaded, not synced, again.&lt;/LI&gt;&lt;LI&gt;ONLY changes to the data of a feature layer are synced, NOT changes to the map region, adding layers, map style (icons) etc. Is there documentation that details what will/won't trigger an update?&lt;/LI&gt;&lt;/OL&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks!&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Sep 2021 21:11:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/unable-to-sync-preplanned-map-area/m-p/1095122#M7079</guid>
      <dc:creator>RTC</dc:creator>
      <dc:date>2021-09-02T21:11:50Z</dc:date>
    </item>
  </channel>
</rss>

