Access Data Source from AppleHealthKit API

73 views Asked by At

I am reading sleep data from AppleHealthKit API, that have wearables connected.

Is it possible to retrieve:

  1. If data came from wearable (e.g.--> True/False)
  2. Wearable brand / Model (e.g. apple or Applewatch2)
  3. Software Version (e.g. 1.3.4)

Are the specific permissions that need to be asked to retrieve source data?

1

There are 1 answers

1
psolanki On

You can look at the sourceRevision and device properties on the sleep sample. That may have the info you need. You don't need additional permissions to access this.