26
ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider & ) & )

ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

Embed Size (px)

Citation preview

Page 1: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

ArcGIS Runtime SDK for iOS:Debugging Offline Feature Editing

Garima Dhakal@GarimaDhakal

Bradley Snider@bjsnider

&)

&)

Page 2: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

Strengthen your skills in troubleshooting iOS offline feature editing applications.

Goal

!

Page 3: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

Who here has worked with the ArcGIS Runtime SDK for iOS? Offline editing?

Page 4: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

Agenda

Page 5: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

Agenda

Page 6: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

Desktop pattern Service pattern

# Consume runtime content from ArcMap

# Read-only data# Best for infrequent

updates

# Download data# Update, add, delete# Changes applied after

sync

Data preparation

Page 7: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

Tile Package

AGSExportTileCacheTask

ArcMap

iTunes/file share

Data preparation

Download cachedtiles

Page 8: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

Sync-enabled feature service

Feature class

Sync-enabledfeature service

% Enterprise geodatabase% Enable archiving% Create Global IDs% Enable attachments (optional)% Versioned (10.3+) or non-versioned data

Data preparation

Page 9: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

Creation date

PIN gdb_from_date gdb_to_date116 7/23/2015 12:32 12/31/9999

Data preparation

Archiving – record and access changes made to a dataset over time

Modification/deletion date

12/31/9999 null ⇒

Page 10: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

Add feature

PIN gdb_from_date gdb_to_date116 7/12/2015 17:34 12/31/9999

116

117

PIN gdb_from_date gdb_to_date116 7/12/2015 17:34 12/31/9999117 7/20/2015 13:30 12/31/9999

PIN gdb_from_date gdb_to_date116 7/12/2015 17:34 12/31/9999117 7/23/2015 13:33 12/31/9999

Data preparation

Creation dateModification/deletion date

Page 11: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

PIN gdb_from_date gdb_to_date116 7/12/2015 17:34 12/31/9999117 7/20/2015 13:30 12/31/9999

PIN gdb_from_date gdb_to_date116 7/12/2015 17:34 12/31/9999117 7/20/2015 13:30 7/23/2015 12:34117 7/23/2015 12:34 12/31/9999

116

117117

PIN gdb_from_date gdb_to_date116 7/12/2015 17:34 12/31/9999117 7/20/2015 13:30 7/23/2015 12:34117 7/23/2015 12:34 12/31/9999

PIN gdb_from_date gdb_to_date116 7/12/2015 17:34 12/31/9999117 7/20/2015 13:30 12/31/9999

Update feature

Data preparation

Creation dateModification/deletion date

Page 12: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

PIN gdb_from_date gdb_to_date116 7/12/2015 17:34 12/31/9999117 7/20/2015 13:30 12/31/9999

PIN gdb_from_date gdb_to_date116 7/12/2015 17:34 12/31/9999117 7/20/2015 13:30 7/23/2015 12:34

116

117

PIN gdb_from_date gdb_to_date116 7/12/2015 17:34 12/31/9999117 7/20/2015 13:30 12/31/9999

PIN gdb_from_date gdb_to_date116 7/12/2015 17:34 12/31/9999117 7/23/2015 13:30 7/23/2015 12:36

Delete feature

Data preparation

Creation dateModification/deletion date

Page 13: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

Agenda

Page 14: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

Offline editing workflow

Offline workflow

Page 15: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

ViewQuery

AnalyzeUpdate

AddDeleteAGSGDBSyncTask

syncGeodatabase

generateGeodatabaseWithParameters

Sync-enabled feature service

Offline workflow

Download only

Uploadonly

Bidirectional

Page 16: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

Agenda

Page 17: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

#

'

%(

$

Potential hiccups

# Strong connection# Intranet? Use internal wifi

Network

Page 18: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

#

'

%(

$

Potential hiccups

Device

$ iOS version (iOS 7, 8,…)$ Device type (iPhone/iPad)$ Device version (iPad 1,2,…)

Page 19: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

$

#

'%

(

Code

Potential hiccups

( Set breakpoints( Print to console

Page 20: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

Potential hiccups

Code - Editing and sync error codes

Page 21: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

(

$

#'

%

Data

Potential hiccups

% Non-nullable field% Attachments with global ID

Code

Page 22: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

%

(

$#

'

Security

Potential hiccups

' Use AGSCredential class' Online: ClientID' Server: username/password

Page 23: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

Agenda

Page 24: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

Agenda

Page 25: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)

Thank you…

Please fill out the session survey in your mobile app

•Select ‘Debugging Offline Editing using ArcGIS

Runtime SDK for iOS in the Mobile App- Use the Search Feature to quickly find this title

•Click “Demo Theater Survey”

•Answer a few short questions

Page 26: ArcGIS Runtime SDK for iOS: Debugging Offline Feature Editing Garima Dhakal @GarimaDhakal Bradley Snider @bjsnider &)&) &)&)