Pavel Zagorskyy
Pavel Zagorskyy

Reputation: 135

watchkit or healthkit for getting health attributes

As I saw, apple watch has different sensors: for heart pulse rate, for temperature etc. So Ive tried to look for some way to get this data from sensors to iPhone. But there is only UI mess about WatchKit, and something in HealthKit that i do not understand. So the question : can we access these sensors for receiving health data, or movement speed, or something like this?

Upvotes: 1

Views: 1442

Answers (3)

blackbox
blackbox

Reputation: 671

Update : it's now possible with WatchOS 2 : https://developer.apple.com/watchos/

Sample code : https://github.com/coolioxlr/watchOS-2-heartrate

Upvotes: 0

Jonny
Jonny

Reputation: 2094

When you request parent app to fetch HealthKit data, if iPhone is locking and set a password, them you will get an error: "Protected health data is inaccessible". So, I think a health data related watch app is impossible to success submit to App Store.

Upvotes: 0

bgilham
bgilham

Reputation: 5949

No, WatchKit does not currently allow access to the hardware sensors on the Apple Watch.

Source: https://devforums.apple.com/thread/254540?tstart=15

Upvotes: 3

Related Questions