简体   繁体   中英

WatchOS2 Heart Rate

Hi fellow developers,

We had to wait for it but it's finally here.. or isn't it?

Just a regular question about the new heart rate option in Watch OS 2 beta. Can my running app benefit from heart rate monitoring every second or do we have to use the healthkit version which only refreshes every 10 minutes (or so?).

Answer: You should use HealthKit as it refreshes every 5 seconds during a workout.

Ok, I did my research watching the WWDC 2015 - What's New in Healthkit video ( https://developer.apple.com/videos/wwdc/2015/?id=203 ). If you skip to ~32:00 minutes, the keynote speaker called Mark is implementing Healthkit in it's Watch App. The BMP is monitored after authorizing on your iPhone the app may use HealthKit and will refresh the heartbeat every ~5 seconds. So yes, we can finaly stream the heartrate!

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