I am working on an iOS app. I have two question regarding:
1. I need to fetch health data while my phone is locked. Is there any way to fetch health data either from iPhone device or apple watch?
2. I also stuck to fetch heart rate.
I am working on an iOS app. I have two question regarding:
1. I need to fetch health data while my phone is locked. Is there any way to fetch health data either from iPhone device or apple watch?
2. I also stuck to fetch heart rate.
1. Your app may not be able to read HealthKit data for the following security reasons:
"For security, the HealthKit store is encrypted when the device is locked, and the HealthKit store can only be accessed by an authorized app. As a result, you may not be able to read data from the store when your app is launched in the background..."
https://developer.apple.com/documentation/healthkit/protecting_user_privacy
2. There are many options when fetching heart data and very many public code samples to do this. You need to show your code or ask a detailed question for us to help.