Accessing Sleep Stages in a Standalone Wear OS 4 App

Hello everyone,

I’m developing a standalone app for Samsung smartwatches running Wear OS 4+, and I need access to real-time sleep stage data from Samsung Health. However, over the past 5 days, I’ve been struggling to integrate the Samsung Health SDK into the app to access this sleep stage data directly.

I currently have a zip file named samsung-health-sdk-for-android-20201103.zip, which contains the file samsung-health-data-1.5.0.aar located in the \data-v1.5.0\libs\ directory. I’ve placed it in my app’s libs/ folder and attempted to import it into the project, but I’m not getting any success.

So my main question is: Is it possible to build a standalone watch app that can directly access real-time sleep stage data from Samsung Health on the watch itself? Or is the only way to achieve this by building a mobile companion app that syncs data via Health Connect, which in turn retrieves it from Samsung Health on the phone, which pulls it from the watch?

Any advice or guidance would be greatly appreciated. Thanks in advance!

Hi,
Unfortunately, sleep stages are not available from 3rd party app on Galaxy watches running wear OS.

Hi, there is a mobile application (and wear os companion app) called Sleep for Android which connects to Samsung Health and gets the sleep stages in real time. So there is a way. I need to know how many ways there are so I can build my app properly.

You can get the Samsung Health data using Google health connect API. Here is the guide you may check:

For any confusion, you can contact with the related team from Samsung via Developer Support.

1 Like

have you found any way to access live sleep data?