This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Active energy on apple health synced from Garmin

Hello,

It seems that the active energy synced on apple health is not correct:

active_energy_apple_health = active_energy_on_garmin + sum(calories_burned_during_activities_logged_on_garmin)

(1216 ~ 537+332+348 (see screenshots))

=>Which is not correct since the active part of the calories_burned_during_activities_logged_on_garmin is already included in the active_energy_on_garmin.


Why isn't the Garmin simply syncing active_energy_on_garmin as the active energy on apple health ?


  • Same issue here… PLEASE GARMIN take a look at this integration 

  • Hope someone from Garmin actually reads these … I’ve tried support just always a dead end .

  • I'd encourage you both to submit tickets to strava to ask them to undo this change. They're very responsive (I've gotten 2 replies in 3 hours). That's probably the best chance of fixing it. They just need to reenable uploading of 3rd party activities. 

  • I did, and they sent me the link on how to connect Garmin with apple health.

  • Yah, and then I responded again and pointed out that this was useful feature (and pointed out I'm a paying customer). Who knows if it will work but seems to be better off than Garmin's efforts on this front. 

  • I'd also suggest opening a case with Gamin.   As even the features on Apple Health they have implemented aren't working correctly, I think you are justified in asking.   Obviously the support folks won't be able to fix it, but if enough issues come in, it may float up to someone who can approve development time to implement Apple Health correctly.

  • I just got off a chat with Garmin support. Super helpful guy. He said the way the Garmin database works is on a pull request only. Meaning, Garmin doesn’t send any data to Apple or any third party app. Apple, or another app, requests the data and then populates it in their system. The fact that Strava used to work for populating Apple Health suggests that Strava was pulling/categorizing the data appropriately and then sending it to Apple while Apple on its own is not. About to open a support chat with Apple to see if they can submit the bug. 

  • Just got off the phone with Apple. As expected they couldn't find any issues with the hardware on either my phone or watch and said we would need to submit feedback to the software team at the following link to have someone look at it. 

    www.apple.com/.../

  • jmhunsaker, with all respect to the person at Garmin (everybody I have ever interacted with there has been awesome as well!), they are mistaken.  There is basically a database on your phone called the HealthKit Store, where all your health data is written through the HealthKit APIs.  When you give an app permission to read or write health data, you are giving them permission to a subset of what is in that database.   Those apps then can use Apple's published API to post data or read data based on what they do, and the rights you granted.   I can assure you that Apple hasn't written software to query Garmin Connect and pull in anything.  This is immediately obvious when you see how radically different the data is when it comes from a different source.  If it worked that way, then Apple would have to write code for every single app that wanted to record any data.  Then entire point of an API like this is that anybody can use it if their app has permission and the follow the 'rules'.

    Garmin 100% is responsible for implementing (or not) the HealthKit API, and while they have hit some of the basics, it isn't nearly as well implemented as any of us would expect it to be.   They are writing data, but in many cases, not enough to be useful, or writing it as summary data rather than samples and Apple intended.   Apple isn't going to find a bug because there isn't one in their API.  It's on Garmin's side, and has been for years.   

    Strava may have been writing things correctly, but I completely get why they would stop.   If I have Zwift and Strava on my phone, and both connected to HealthKit, AND they are connected to each other, I want Zwift to write my data to HealthKit.  If Strava writes it too, then you get double entires for everything.  (if you did Garmin and Strava in this case, you'd likely get at least triple entries for some stuff).    So, from what I've been reading here (I haven't tested Strava integration lately), they decided that it they were the source of the tracking, they would write it to HealthKit.  If they weren't, then they expect you to use the app that was.  That makes totally sense to me.   Especially since your other app might be able to write data that Strava doesn't deal with.

    It's interesting to me that Apple even makes their own applications jump through some hoops.  You can turn off certain permissions on an Apple Watch, and it can't write data anymore.  Rings are actually closed by Apple Watches, not the phone, so until your watch syncs, nothing counts.  (apple watches have their own version of a HealthKit store that syncs to your phone).  The Apps "Health" and "Fitness" both read/write to the HealthKit store, but look at different data, and you can't install "Fitness" unless you own an Apple Watch.   It's going to be interesting if/when Apple ever decides to really focus on the sports watch market.  It wouldn't be that hard for them to add some extra values into the HealthKit store (think running power), and build a "Athlete" app that looked a lot more like Garmin Connect, except it leverages all the data from any source that writes into the store.   If some of the rumors are true (I have no clue if they are), that might be a focus for them this year.  

    I really like Garmin's hardware and software, but their significant lack of playing nice with others is becoming more frustrating.   (I want buttons on my running watch, and a dedicated bike computer, but I"m going to wear an Apple Watch most of the day, my scale is a Withings, etc. and I want all my data to be available when and how I want it). 

  • All-

    If you are experiencing the Activity Ring not updating after completing a workout, please refer to the latest thread for this discussion:

    Apple Health Activity Ring does not fill after workout is completed on a Garmin device

    If you are experiencing a different Apple Health ring not updating/completing, please start a new thread and specify the specific ring with which you are having trouble.