> For the complete documentation index, see [llms.txt](https://docs.buildnatively.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.buildnatively.com/natively-platform/features/healthkit.md).

# HealthKit

{% hint style="danger" %}
HealthKit is an Apple Framework that is available only on iPhones. No iPads or Android devices.
{% endhint %}

### How to set up HealthKit?

1. **Enable HealthKit for your Bundle ID on** [**https://developer.apple.com**](https://developer.apple.com)

   \
   a) Go to [Bundle IDs page](https://developer.apple.com/account/resources/identifiers/bundleId)

   <figure><img src="/files/A2IjvvtzDMaSCtZn5vm6" alt=""><figcaption></figcaption></figure>

   \
   b) Find your Bundle ID in a list and click on it

   <figure><img src="/files/ELMIo6DKmBIljB3NmU8N" alt=""><figcaption></figcaption></figure>

   \
   c) Scroll down, enable HealthKit, and click Save

   <figure><img src="/files/Vr7p92Si65vhphfzrVnY" alt=""><figcaption></figcaption></figure>

   <br>
2. **Enable HealthKit in Natively**

   <figure><img src="/files/yqVVvBXNH3FK690Ob2Qp" alt=""><figcaption></figcaption></figure>

   Turn on the HealthKit feature and fill out the following information:

   * **Read permission description** - A message to the user that explains why the app requested permission to read samples from the HealthKit store. Refer to [**Apple's guidelines** ](https://developer.apple.com/design/human-interface-guidelines/ios/app-architecture/accessing-user-data/)to avoid potential **rejection**.
   * **Write permission description** - A message to the user that explains why the app requested permission to save samples to the HealthKit store. Refer to [**Apple's guidelines** ](https://developer.apple.com/design/human-interface-guidelines/ios/app-architecture/accessing-user-data/)to avoid potential **rejection**.

{% hint style="warning" %}
For now, Natively **supports only reading data** from HealthKit (We plan to add writing soon). But **Apple requires** apps that only read data to provide **both Read/Write permission text**. You can **use Read text for both Read & Write**.
{% endhint %}

3. **Go to Natively and rebuild your app**

### How to use HealthKit?

{% content-ref url="/pages/aADCd43iTMPbOaNvpdLE" %}
[HealthKit](/guides/integration/healthkit.md)
{% endcontent-ref %}
