Building Apps with ArcGIS Runtime SDK for iOS · Runtime platforms . QT . OS X . Windows Store...

Post on 25-Jul-2020

5 views 0 download

transcript

Building Apps with ArcGIS Runtime SDK for iOS

Divesh Goyal Eric Ito

Topics

• Runtime Overview • Offline* • Popups • Security • Licensing*

* New at 10.2.2

http://www.imore.com/sites/imore.com/files/styles/large/public/field/image/2014/03/topic_iphone_5c.png?itok=z2U8jqc9

Runtime platforms

QT

OS X

Windows Store

JavaSE

Windows Mobile

iOS

Android

Windows Phone

Mobile

Desktop

Embedded

.NET

Desktop Client

Take your data with you.

No connection? No problem.

Offline

http://www.wallpapervortex.com/wallpaper-35500_miscellaneous_walking_in_the_middle_of_nowhere.html

Getting data onto the device.

Offline

http://www.maclife.com/files/u220903/iphone_5_plugged_in_620px.png

Building offline apps with Runtime - I & II Primrose B, 4 – 6:30 PM

Building offline apps for iOS & Mac Mojave, 2:30 – 3:30 PM

In-depth

DEMO

Plan for interruptions.

Offline

http://cdn.imore.com/sites/imore.com/files/field/image/2012/09/remind_me_later_iphone_hero2.jpg

Understand app state transitions

https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/Art/high_level_flow_2x.png

Refresh content in the background

Be opportunistic.

Offline

http://www.imore.com/sites/imore.com/files/styles/large_watermark_bottom_right/public/field/image/2014/02/background_app_refresh_settings_iphone_hero.jpg?itok=ezqD0NRp

Background Fetch

Background Fetch (step 1)

Background Fetch (step 2 - check status)

Downloading in the Background

Notify the user of new content.

Get back in the game.

http://cdn.iphonehacks.com/wp-content/uploads/2013/06/ios-7-notification-center.png

DEMO

Commentary, Pictures...

Explore maps with

Popups

Popups

Explore maps with Charts...

http://static.guim.co.uk/sys-images/Guardian/Pix/pictures/2013/7/8/1373301210934/shadow-of-man-

Graphs...

Explore maps with

Popups

http://static.guim.co.uk/sys-images/Guardian/Pix/pictures/2013/7/8/1373301210934/shadow-of-man-

Attributes, pictures, videos, pdf files, office docs...

List feature details

Popups

http://static.guim.co.uk/sys-images/Guardian/Pix/pictures/2013/7/8/1373301210934/shadow-of-man-

Collect new information

Popups

http://static.guim.co.uk/sys-images/Guardian/Pix/pictures/2013/7/8/1373301210934/shadow-of-man-

Validate with the data model.

Popups

http://static.guim.co.uk/sys-images/Guardian/Pix/pictures/2013/7/8/1373301210934/shadow-of-man-

Augment with rich media.

Popups

http://static.guim.co.uk/sys-images/Guardian/Pix/pictures/2013/7/8/1373301210934/shadow-of-man-

Capture location with on-board GPS.

Popups

Write less code.

Popups

http://static.guim.co.uk/sys-images/Guardian/Pix/pictures/2013/7/8/1373301210934/shadow-of-man-

DEMO

Don’t forget to lock up.

Security

http://4.bp.blogspot.com/-fjKsKOJwLgA/Tt_mDAXbXOI/AAAAAAAAAMI/OvL_fdtLgVo/s1600/Data+security+2.jpg

Protect files with On-disk encryption

Security

http://i0.wp.com/techfat.com/wp-content/uploads/2013/09/Apple-event-74.jpg

oAuth, HTTP, IWA, PKI Certificates...

Your choice

Security

Keychain is your friend.

Security

http://www.securelist.com/en/images/pictures/klblog/208193452.png

DEMO

Same game, new rules.

Licensing

http://www.photographergrabber.com/wp-content/uploads/2013/11/contract-magnifying-glass.jpg

Runtime Licensing

All capabilities. Period.

Development & Testing

Licensing

Connected capabilities + Offline map viewing

Basic level

Licensing

//Set client ID [AGSRuntimeEnvironment setClientID:@"DuxuhOEH9dAC4JCY" error:&err];

All capabilities, including offline routing, geocoding, editing, and sync.

Standard level

Licensing

//A) Set your authorization code [[AGSRuntimeEnvironment license] setLicenseCode:@”<code>”];

//B) Set license w/ org account info = [[AGSLicenseInfo alloc] initWithPortalInfo:portalInfo]; [[AGSRuntimeEnvironment license] setLicenseInfo:info ];

OR