Hi Ziqiao,
thanks for the reply. I have already tried disabling the data transfer to the iPhone via wcsession, but the same error still occurs.
Is there any sample code / project from apple about how to implement this?
One other question came to my mind:
You said that my app can receive 4 updates per hour as long as it has a complication on the active watch face.
I don't have a complication for the app. Does this mean that the app can only receive up to 1 update per hour from the HKObserverQuery?
What would happen if I also want to get updates from other data types, not just heart rate. For example in addition also step count, calories, blood oxygen. If I would register an HKObserverQuery for each of these 4 data types with a frequency of hourly. If all 4 HKObserverQueries "wake up" every hour, would that already be 4 background updates per hour? Which would be too much already without a complication.
Thanks & best regards,
Tobias
Topic:
App & System Services
SubTopic:
Health & Fitness
Tags: