Questions tagged [healthkit]

HealthKit is a framework for iOS and watchOS that allows health and fitness services to share their data with the new Health app and with each other.

HealthKit allows apps that provide health and fitness services to share their data with the new Health app and with each other. A user’s health information is stored in a centralized and secure location and the user decides which data should be shared with your app.

HealthKit also works directly with health and fitness devices. In iOS 8.0, the system can automatically save data from compatible Bluetooth LE heart rate monitors directly into the HealthKit store. The system can also automatically import step count data from the M7 motion coprocessor, if available. Other devices and data sources must have a companion app that can access the data and save it to HealthKit for them.

Quick Reference:

1188 questions
-1
votes
1 answer

Access Data step count from Health app of Apple

I would like to show in my app a label of my step count The data step count will be take from the health app of apple but i don't know if will be possible how i can print the value of my step count in a label ? This is my code Thanks #import…
-1
votes
2 answers

How do you create a custom UIDatePicker?

I am creating a health and fitness app for iOS. As part of the user registration they have to enter in their height. I am asking the user to do this by using a date picker but I am unsure as to how I would go about doing this. Anyone have any…
-2
votes
1 answer

Can I get family member's Health Data with HealthKit? - Swift

In iPhone Health App, My family has shared information to me. Can I get these information in my app? I try to get information in "Healthkit", but I can always obtain personal data only. Is there any way to get family health data?
Eric
  • 3
  • 2
-2
votes
1 answer

How to read different workouts in HEALTHKIT SWIFT?

I’m new in Swift and I need to extract all data related to workouts from HealthKit and use it in JavaScript (I'm making a React Native app), so I made a query but its predicate only pass one workout e.g .cycling, what I need is to get all workouts,…
-2
votes
1 answer

Why does this always return 0?

I am trying to read the latest heart rate using HealthKit. My script is working fine, however when I try to return an integer value from my function it always returns 0 (the default value of latestHeartRateBPM), even though it is being mutated. func…
-2
votes
3 answers

Get the length between two dates in hours

I am reading sleep data into my react-native app using react-native-healthkit, and I need to find a way to get the total amount of sleep time. The data is read in like this: If anyone has any ideas on the best way to handle this data, please let me…
Liam Ramsbottom
  • 157
  • 3
  • 15
-2
votes
1 answer

How to make a custom data input view in xcode?

I would like to make a custom data input field similar to the Datepicker function. However, I would like the input field to display different height selections. This same effect/function is mimicked in the IOS 9 health app - Height and Weight entry…
TheHoop
  • 365
  • 1
  • 3
  • 8
-2
votes
1 answer

How can we get heart rate when apple watch in background in WatchOS 2.2

I am very confuse not find any solution how can we get heart rate when app in foreground and background.
Nasib
  • 9
  • 3
-2
votes
1 answer

Getting updated heart rate data from Health Kit

I wrote this code to get heart rate I am using NSArray and getting average of heart rate. Now the question is the Apple Watch is updating data in Health Kit and I want the updated average heart beats being refreshed at every 1 minutes. I am stuck at…
-2
votes
1 answer

How to reactive my health kit activation options on my app

I am new with cordova healthkit plugin. I was wondering, the first time I ran my app, I was shown the window with options to activate (example, height, weight, ...) :…
akaliza
  • 3,641
  • 6
  • 24
  • 31
-2
votes
1 answer

iOS8 app crashes on Xcode6.3 When authorise HealthKitStore

I have integrated HealthKit in my app. But when i do authorisation of HealthKitStore, it won't allow me to authorised. Here is the code that i have used to authorise HealthKitStore: var healthStore: HKHealthStore = HKHealthStore() let…
Kirti Parghi
  • 1,142
  • 3
  • 14
  • 31
-3
votes
1 answer

Is it possible to query the Blood Oxygen Saturation sensor from your own app on Apple Watch Series 6?

Good morning, This may be a bit of a stupid question but I cannot find the answer anywhere! For a project I am working on a requirement is to regularly check the user's blood oxygen levels. I understand that through HealthKit I can view stored SPO2…
KevvinG
  • 1
  • 2
-3
votes
1 answer

Is HealthKit query on WatchOS limited?

The same code for fetching HKCorrelation (Blood Pressure) on iPhone returns all records, but on watch just 4. Is there a documentation explaining such behavior? It looks like only records added after installing the app on watch are synced.
-3
votes
1 answer

Heartrate with no decimal places

Im doing a watch app for the Apple Watch in Xcode and the sample code from the Apple Developer site SpeedySloth: Creating a Workout has the HeartRate rounded to one decimal place, e.g. 61.0 How can I fix this? case…
Kurt L.
  • 623
  • 10
  • 23
-3
votes
1 answer

Extract heart rate from healthKit

I'm trying to build an app with swift which will extract the heart rate from iwatch and display it to the user along with it will play some music in the user's iphone. Pretty new to ios ,so im trying to figure out how to extract data from healthkit…
Gaurav Roy
  • 49
  • 2
  • 8
1 2 3
79
80