Search code examples
ioswatchkitcore-motion

Apple watch standup detection


I am now working on a app dealing with user's motion on the Apple watch. As shown on the Apple Watch, it recognize when you are sitting or standing. Is there any way to get access to it using API? Thanks


Solution

  • Yes, you should be able to obtain the type of motion using CMMotionActivity, which is part of the Core Motion Framework (introduced in watchOS 2.0).