For some time I was struggling with HealthKit authorization in my iOS application. I kept receiving an error asking me to update my info.plist file. Despite adding (what I thought) was the correct descriptor included I was not able to get around the error. This led me to believe that my info.plist file was set up incorrectly.
I made a new iOS project and followed a tutorial explaining that the info file does not automatically get created in newer versions of Xcode. Instead, there was a work around way to get the file created for you, which then allowed me to add the correct data usage descriptors to the info file.
Now that I know that I should have access to data types such as heart rate and stand time, I need to rewrite the functions that consistently update them. Before, the metrics were updated due to being part of a live workout session. Since the iOS application is not a live session, I’m going to attempt to write a timer function that will consistently make update queries.