healthkit Questions

3

Solved

I have a scenario where I need to retrieve multiple sets of data from HealthKit -- body temperature, weight, and blood pressure. I need all 3 before I can continue processing because they're going ...
Stoneware asked 24/4, 2015 at 18:32

2

Solved

I am writing a simple app to monitor the heart rate (HKQuantityTypeIdentifierHeartRate) from HealthKit whenever a new health rate value is written to HealthKit. As seen at WWDC2015 (session 203) I...
Beside asked 28/10, 2015 at 22:42

3

Can HealthKit background delivery launch the application if is not running? Particularly in a terminated state?
Camass asked 15/10, 2014 at 6:21

1

Solved

When I try to upload my iOS + apple watch app to iTunes using Application Loader, I get the error message ERROR ITMS-90595: "Unsupported Key. The Info.plist of bundle Watchless.app/Watch/Watchle...
Apocope asked 27/1, 2016 at 22:58

2

We're getting an error on a certain few devices when trying to authorize with the HealthKit API. The call to [HKHealthStore requestAuthorizationToShareTypes:::] fails consistently with the followin...
Environment asked 25/11, 2015 at 18:7

1

Solved

I have a watchOS 2 app that displays health data during a run. I start a workout using HKWorkoutSession as follows: self.workoutSession = HKWorkoutSession(activityType: .Running, locationType: .Ou...
Saccharose asked 2/10, 2015 at 19:38

2

I am trying to integrate HealthKit with an app I'm building, and I seem to have successfully added the entitlement for it. I've created and downloaded a provisioning profile with the appropriate ap...
Abarca asked 12/10, 2015 at 0:50

2

I am using HealthKit in my app. I am getting the Permission from the user for accessing the HealthKit Data. After the Authorisation, if I check for authorised status for a particular HealthKit Obj...
Disconcert asked 16/3, 2015 at 12:19

4

Hello I'm trying to setup the health store observer with background delivery enabled. My problem is that it won't deliver anything when the screen is locked. I have simplified my code for this ques...

2

I'm trying to do a pretty basic thing: set up an HKObserverQuery so I can know when various data points are changed (I've made sure that the user has authorized the app to use the data point in que...
Nought asked 22/3, 2015 at 20:37

2

Solved

I'm using HealthKit to read certain types of information. I'm specifically not asking for write functionality. The problem comes in when trying to detect if the user has allowed a certain Health ty...
Bawdy asked 26/8, 2014 at 18:2

2

I add sample like this: var store:HKHealthStore? date = NSDate() let type = HKQuantityType.quantityTypeForIdentifier(HKQuantityTypeIdentifierDietaryVitaminA) quantity = HKQuantity(unit: HKUnit.gra...
Gastrology asked 30/1, 2015 at 15:53

1

I have an app where I am trying to integrate the HealthKit and pull steps related data aggregated by day using the HKStatisticsCollectionQuery. Requirement is to pull steps data specific to only iP...
Ytterbium asked 21/7, 2015 at 15:8

1

Solved

I'm working on apple watch app and I'm using HKworkoutsession to access heart rate data sample. In the newest watchos2 beta3 release bug "During an active workout session, new heart rate samples a...
Reshape asked 14/7, 2015 at 17:34

1

Solved

It has been stated that an app running a HKWorkoutSession will have special privileges over other watchOS 2 apps, so when a user looks at their Apple Watch, it will go to the view showing running a...
Exorcism asked 4/7, 2015 at 19:52

2

Solved

We're currently trying to get HealthKit to work in the background, in order to deliver steps data to our server when the App is closed. For experimental purposes we've created a brand new iOS proj...
Kalvin asked 21/12, 2014 at 20:22

2

Solved

We're making an app which collects a special type of data not supported by the list in the Health app. Is there a way to create a new category for this?
Elihu asked 6/10, 2014 at 19:5

7

I have an application that uses HealthKit and Swift in it, everything compiles and runs fine when I test it from Xcode on a simulator or a device. I tested, debugged it, and submitted it to the iTu...
Krems asked 3/10, 2014 at 14:4

1

Solved

I want to pull HealthStore data in the background using background fetch but I keep getting an error: Error Domain=com.apple.healthkit Code=6 "Protected health data is inaccessible" UserInfo=0x1702...
Milliary asked 20/5, 2015 at 21:52

2

Is there a way to get sensor data from Apple Watch? For example, how can I connect and get heart rate from Apple Watch to my app? These are the steps I need do in my app: Define a delegate to rec...
Zurn asked 6/4, 2015 at 2:21

1

I understand why, but the ambiguity of the errors that HealthKit puts out is a total black box. Why am I getting the error: An error occurred while adding a sample to the workout: The operation ...
Kyte asked 16/3, 2015 at 1:4

0

My requirement is to register for any one of the Health data like steps, weight, heart rate, etc., for background delivery using enableBackgroundDeliveryForType: method. And then create a Observer ...
Bibb asked 19/3, 2015 at 10:40

1

I'm trying to use HealthKit's step counter and so far this is what I have. It doesn't fail but I don't see any activity. What am I missing? import UIKit import HealthKit class ViewController: UIV...
Menendez asked 2/3, 2015 at 2:59

2

Solved

I'm trying to display the daily amount of steps the user takes. But I don't really know how to manage this. I already got this code: let endDate = NSDate() let startDate = NSCalendar.currentCalenda...
Afterdamp asked 2/2, 2015 at 20:16

2

Solved

I have an issue I'm trying to solve, I've setup an HKObserveryQuery, which works great and gathers new data for me. The issue however is that sometimes when I go back to the Health app and delete...
Cholecystitis asked 30/12, 2014 at 2:30

© 2022 - 2024 — McMap. All rights reserved.