Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
723 views
in Technique[技术] by (71.8m points)

ios - Is HealthKit query on WatchOS limited?

The same code for fetching HKCorrelation (Blood Pressure) on iPhone returns all records, but on watch just 4. Is there a documentation explaining such behavior?

It looks like only records added after installing the app on watch are synced.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The issue was that on iPhone HKHealthStore returns all records, however on watch only records added by release versions of the app are fetched. That's why I didn't see the same data on watch as on iPhone.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...