简体   繁体   中英

Is it possible to create an app to read the heart rate sensor of an Apple watch?

How to read heart rate directly from Apple watch sensor use a custom app (not indirect access via HealthKit)?

All available documents suggests using HKWorkoutSession, but without any information as to how the sensor value can be retrieved. The example provided in the official link below takes in constant values without giving any details how to use sensor values.

https://developer.apple.com/documentation/healthkit/hkworkout

Any information would be much appreciated

创建一个 HKWorkoutSession 以启动心率传感器,然后每次在手表上读取新的心率时使用 WCSession.default.sendMessage() 将其发送到您的手机

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM