Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to add custom data to HealthKit?

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?

like image 811
iamjustaprogrammer Avatar asked Oct 06 '14 19:10

iamjustaprogrammer


People also ask

Can I import data to Apple Health?

Health CSV Importer is the easiest, fastest, and most reliable way to import your CSV data into Apple Health. The import logic has been battle-tested with millions of data points and will support almost any CSV you throw at it.

Is Apple Health the same as HealthKit?

HealthKit is the developer framework behind it that allows apps to work with Apple Health and each other. If you're confused about how the Apple Health app works, what type of information you need to get the most out of it, and which apps are compatible, keep reading.

How do I add entitlement to HealthKit?

To add this entitlement to your app, first enable the HealthKit capability in Xcode, and then check any values that you want to add to the HealthKit Capabilities Entitlement. Only add values for data types that your app needs to access. App Review may reject apps that don't use the data appropriately.


Video Answer


1 Answers

No, there isn't at this time. From the HealthKit Framework Reference:

The HealthKit framework is designed to share data between apps in a meaningful way. To that end, the framework constrains the types of data and units to a predefined list. These limits ensure that other apps understand both what the data means and how it can be used. As a result, developers cannot create custom data types or units. Instead, HealthKit attempts to provide a reasonably complete list of data types and units.

If I were you, I would file a Radar (http://bugreport.apple.com) detailing the type of health data you'd like to see added.

like image 163
Undo Avatar answered Sep 28 '22 22:09

Undo