1 Reply
      Latest reply on Sep 11, 2019 9:51 PM by PBK
      edgeoftheatlas Level 1 Level 1 (0 points)

        I'm creating an app where a user will be swimming using the HKWorkoutSession where the activity type is declared at init. However, what if the user leaves the water and starts running. Is there a way to detect this transition?

        • Re: Possible to detect change in Watch activity?
          PBK Level 7 Level 7 (3,525 points)

          You cannot detect water on the watch.  A swimming stroke involves the motion of the palm downwards.  That motion is a constant rotation of the watch along the Y (I think it's Y) axis.  This is true for crawl, back, butterfly and breast strokes (but not kickboard).The same is not true of running.  Detecting that motion is a reasonable surrogate for 'the person is swimming'.