Esri / data-collection-ios

Mobile data collection app using the iOS Runtime SDK.
https://developers.arcgis.com/
Apache License 2.0
25 stars 26 forks source link

Why does a web map taken offline have a different itemID than the online web map? #18

Closed esreli closed 6 years ago

esreli commented 6 years ago

I've written Antti & am awaiting a response.

esreli commented 6 years ago

From Antti:

yes it has. when we take it offline it gets new id but you can find the original from localItem.OriginalPortalItemId

assuming thats what you want to do

esreli commented 6 years ago

It appears Antti's suggestion has not been implemented in iOS: https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_local_item.html

Whereas it has been implemented in Android SDK: https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/mapping/LocalItem.html#getOriginalPortalItemID()

esreli commented 6 years ago

localItem.OriginalPortalItemId has been introduced into the SDK and implemented. It works as expected.