I am trying to read Heartrate data from Healthkit. I am not able to read that data. I have gone throught this link.
Please help me guys..Thank you.
I am trying to read Heartrate data from Healthkit. I am not able to read that data. I have gone throught this link.
Please help me guys..Thank you.
I managed to read the heart rates from HelathKit using HKSampleQuery. I start reading it from the beginning of the day till 'now'. I also used this link
Here is my function and I call it by pressing a button:
Here is the function to get the value per minute to heartrate:
Here is how I call the function in my button action, it reads the heartrates and put them into an UITextView:
Hope it helps.