More #healthkit refactoring! Good ol’ Josh spent a long time with me today helping me reason through the best approach to managing different types of HealthKit data. Different types of data have to be handled in specific ways, and it’s all asynchronous, as is acquiring the attributes and updating the attributes via the Exist API, so there’s a whole lot of chaining completion blocks going on. Josh figured out a good approach for me, so now I’m trying to get that implemented so I can get back to testing #applehealth sleep data.
Not a lot to report today, except that I started a new branch in #exist for #ios, ready to tackle #AppleHealth sleep data, which we’re always getting requests for. I expect It’ll be a painful few weeks (or longer) getting this working and bug-free, but I’m really looking forward to giving users what they want so they can ask us for something else :)
Spent most of yesterday afternoon debugging an issue in #exist for #ios affecting a couple of users. For some days (but not all), their steps and distance data from #AppleHealth (but not any other data) was super low and incorrect. Lucky @josh was able to help me debug it because I got really stuck and wouldn’t have figured it out by myself.
Turns out the issue was due to me asking HealthKit for data for each day up to midnight for the following day, which sometimes included a tiny number of steps and distance right in that first second of the following day. Once we figured out why I was getting the extra data (totally my fault) and how to exclude it from the results I was sending to the Exist API, the fix didn’t take long. And thankfully Apple approved the update overnight, so it’s already in the App Store. I think that’s the quickest I’ve ever had an update go through Apple review. #laterlog
After that I made a new branch and had a play with grabbing food data from #applehealth and sending it to Exist. It was simpler than I thought, but surprisingly hard to find an app to put the data into Apple Health correctly in the first place. #laterlog
Started the day with some #code: fixed a couple of small things in #exist for #ios and attempted a merge so I can get the latest build out to beta testers soon (planning to have it tested and submitted to the App Store by the end of this month). Spent a while fighting #git due to a combination of #cocoapods conflicts and issues doing
pod install on El Capitan.
Anyway, apart from continued testing and fixing any bugs I notice, I'm now moving on to #applehealth integration! Woo!
In the mood for writing some #code last night and today while the #Ghost team is relaxing. I've been working on adding insights to the #exist #ios dashboard view, but I'm waiting on a change to the API to help me render them.
So... in the meantime I created a new branch and started working on #applehealth integration! Woooooo! Very excited about getting this included finally.