0 Replies
      Latest reply on Jul 13, 2018 12:34 AM by Yaali
      Yaali Level 1 Level 1 (0 points)

        I have developed an iPhone app with watch app for getting live stream of heart rate. As mentioned in many stackoverflow threads iOS get heart rate from Apple Watch in near real time, i have used HKWorkoutSession to get the updated heart rate and sending it to server (Workout session will always be active to get live stream of heart rate).

        The issue here is, this application always stays in front of watch app(which is the expected behaviour when we use HKWorkoutSession). But i don't want this behaviour to happen, since the app only does the job of getting heart rate updates and sending it to server.

        My app now sends the heart rate correctly to server even when the watch screen is off and when the app is in background since i have used Required background modes (Watch) in info.plist.

        Is there any way that we can avoid this app being in front of watch face every-time the user opens the watch?

        Also please let me know if this is the correct approach to Monitor heart rate using apple watch?