iOS get heart rate from Apple Watch in near real time
问题 I need to make an app that records heart rate data in near real time and send this data to a server as soon as possible. First I took this approach: Watch os 2.0 beta: access heart beat rate In fact it is working fine. There is new heart rate data in the HealthKit every five seconds. But now I have the problem that I can't sync that with a server. My first approach was the Watch app. The watch was sending data to a server. That doesn't work because as soon as the screen turns black on the