Apple Health Kit from the Application Developer Point of View

13
Apple HealthKit App Developer View Prepared for Personal Analytics Meetup By Gene Leybzon

description

Developer's view on HealthKit introduced by Apple as part of iOS8 operating system

Transcript of Apple Health Kit from the Application Developer Point of View

Page 1: Apple Health Kit from the Application Developer Point of View

Apple HealthKitApp Developer View

Prepared for Personal Analytics Meetup

By Gene Leybzon

Page 2: Apple Health Kit from the Application Developer Point of View

Health/Fitness Data Collection

Sensor-based apps

Health Provider

Information Staring

Statistical/Personal Analytics

Applications That Can benefit from Health Kit

Page 3: Apple Health Kit from the Application Developer Point of View

API

Statistics/Data Aggregation

Health Info Data Store

What’s in HealthKit?

Page 4: Apple Health Kit from the Application Developer Point of View

Data Units Object Types

HealthStore Access

Permissions

Data Save API

Data Query API

What’s defined in API?

Page 5: Apple Health Kit from the Application Developer Point of View

What data is requested (Ex: Blood Sugar) How to sort result Predicate (how to filter data?) Limit on the amount of data Date/Time range

Simple Data Query API

Page 6: Apple Health Kit from the Application Developer Point of View

Data Store

Listener

Listener

Data Observers (Observer Query)

Page 7: Apple Health Kit from the Application Developer Point of View

Data Element 1

Data Element

2

Data Element

3

How to sync data with the cloud store?

Page 8: Apple Health Kit from the Application Developer Point of View

SUM()

MIN()

MAX()

AVERAGE()

HealthKit Statistics

Page 9: Apple Health Kit from the Application Developer Point of View

Group by day/hr Used to display graph/disarms with aggregated

data

Statistics Collections

Page 10: Apple Health Kit from the Application Developer Point of View

Quantitative(Per Data Object)

Read or Write or Both?

Possible Permissions:

Not Determined, Denied,

Authorized

Separate Permissions are needed for each

data source

Data Access Permissions

Page 11: Apple Health Kit from the Application Developer Point of View

Number formatte

rs

Units (Kg/Poun

d)

Custom formatte

rs

Date formatte

rs

Energy formatte

rs

Localization

Page 12: Apple Health Kit from the Application Developer Point of View

Structured data support for more data types HL7 integration Support for other eco-systems (Android,

Windows)

What is missing in the kit?

Page 13: Apple Health Kit from the Application Developer Point of View

Code Demo