# HealthKit

**URL:** <https://forum.xojo.com/t/healthkit/63720>\
**Category:** iOS\
**Created:** [June 3, 2021, 3:06pm UTC](https://forum.xojo.com/t/healthkit/63720 "2021-06-03T15:06:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Halford](https://forum.xojo.com/user_avatar/forum.xojo.com/chris_halford/32/480_2.png) [@Chris\_Halford](https://forum.xojo.com/u/Chris_Halford)\
**Post date:** [June 3, 2021, 3:06pm UTC](https://forum.xojo.com/t/healthkit/63720/1 "2021-06-03T15:06:40Z")

</div>

Does anyone have any experience with HealthKit integration from Xojo?  
I’m specifically interested in if I can send any data or if I can even get a list of activities.

---

<div class="post-metadata">

**Author:** ![Jeremie\_L](https://forum.xojo.com/user_avatar/forum.xojo.com/jeremie_l/32/150_2.png) [@Jeremie\_L](https://forum.xojo.com/u/Jeremie_L)\
**Post date:** [June 3, 2021, 8:07pm UTC](https://forum.xojo.com/t/healthkit/63720/2 "2021-06-03T20:07:59Z")

</div>

I don’t have any experience yet but considering using HealthKit in a future project.

Some apps send data to HealthKit, you should be able to do the same in Xojo using declares.

---

<div class="post-metadata">

**Author:** ![Chris\_Halford](https://forum.xojo.com/user_avatar/forum.xojo.com/chris_halford/32/480_2.png) [@Chris\_Halford](https://forum.xojo.com/u/Chris_Halford)\
**Post date:** [June 3, 2021, 8:29pm UTC](https://forum.xojo.com/t/healthkit/63720/3 "2021-06-03T20:29:07Z")

</div>

I’m rubbish at iOS declares!

---

<div class="post-metadata">

**Author:** ![Jeannot\_Muller](https://forum.xojo.com/user_avatar/forum.xojo.com/jeannot_muller/32/13359_2.png) [@Jeannot\_Muller](https://forum.xojo.com/u/Jeannot_Muller)\
**Post date:** [June 4, 2021, 10:35am UTC](https://forum.xojo.com/t/healthkit/63720/4 "2021-06-04T10:35:16Z")

</div>

But will be the only way. I wrote a few years ago one with Swift. Even as a physician it was hard to get it into the store. It was an app simplifying to deal with the amount of insuline a patient will need. The formulas are “common” knowledge and are well documented on many (serious) resources on the net, but it took me 3 weeks of email ping pong to convince Apple that it my app is not doing anything else than applying more or less a few “rules of three”. And with every change they whole process of validating the app startet from scratch. So I finally gave up …

---

<div class="post-metadata">

**Author:** ![Chris\_Halford](https://forum.xojo.com/user_avatar/forum.xojo.com/chris_halford/32/480_2.png) [@Chris\_Halford](https://forum.xojo.com/u/Chris_Halford)\
**Post date:** [June 4, 2021, 10:46am UTC](https://forum.xojo.com/t/healthkit/63720/5 "2021-06-04T10:46:28Z")

</div>

My needs are far simpler. At minimum I want to know that they logged a run or a swim on a given day so I can prompt some questions about it.

---

<div class="post-metadata">

**Author:** ![Jeannot\_Muller](https://forum.xojo.com/user_avatar/forum.xojo.com/jeannot_muller/32/13359_2.png) [@Jeannot\_Muller](https://forum.xojo.com/u/Jeannot_Muller)\
**Post date:** [June 4, 2021, 10:59am UTC](https://forum.xojo.com/t/healthkit/63720/6 "2021-06-04T10:59:28Z")

</div>

Understood, all I’m saying is that if you apparently click that you are using healthKit it seemed to me that some extra loops are starting within Apple to approve your App. As much as they banned for instance all e-cig Apps (which didn’t even use HealthKit), but Apple wants to know quite precisely what you are doing exactly when touching something health “related”.

---

<div class="post-metadata">

**Author:** ![Chris\_Halford](https://forum.xojo.com/user_avatar/forum.xojo.com/chris_halford/32/480_2.png) [@Chris\_Halford](https://forum.xojo.com/u/Chris_Halford)\
**Post date:** [June 14, 2021, 11:22am UTC](https://forum.xojo.com/t/healthkit/63720/7 "2021-06-14T11:22:37Z")

</div>

that’s frustrating isn’t it.

---

<div class="post-metadata">

**Author:** ![Jeannot\_Muller](https://forum.xojo.com/user_avatar/forum.xojo.com/jeannot_muller/32/13359_2.png) [@Jeannot\_Muller](https://forum.xojo.com/u/Jeannot_Muller)\
**Post date:** [June 14, 2021, 1:24pm UTC](https://forum.xojo.com/t/healthkit/63720/8 "2021-06-14T13:24:31Z")

</div>

It definitely was in my case. It was a simple “rule of three”. Such a common knowledge that I could not provide any valid scientific paper they were probably expecting. And the people I had to communicate with, obviously had no knowledge whatsoever in health related subjects.
