Does the Privileged Health SDK support Stepcount and Asleep data?

Hello, Samsung Health Team:
We want to build an app on the Galaxy Watch, but before we do that we would like to ask you some questions about how to access your health data.

After our app integrates the Privileged Health SDK, we need to obtain the following types of health data::
1、Accelerometer
2、Stepcount
3、Asleep
4、Fall down Detection

After browsing the relevant information about the Privileged Health SDK on the Samsung developer website, we seem to have found no relevant descriptions of Stepcount and Asleep.
So we want to confirm whether the Privileged Health SDK can provide these two health data.

Thanks.

Hello AKD,

According to the documentation
only Accelerometer data is available using Privileged Health SDK.

But you can get step count, fall detection using Health Services. But regarding sleep, only sleep state can be detected using Health Services.

Some useful links are mentioned below:
=> https://developer.samsung.com/health/blog/en/2022/01/14/using-health-services-on-galaxy-watch

=> Events Monitoring | Samsung Developer

Let me know if you have any other confusion.

Thanks
Shamima

Hi Shamima, thank you very much for your reply.

I have currently run the demo sample project you provided, called “EventsMonitor”,
implementation ‘androidx.health:health-services-client:1.0.0-beta01’.

But from your reply, I can see that you are talking about the alpha version, and we are sure that we need some features of this version.
implementation ‘androidx.health:health-services-client:1.0.0-alpha03’

Regarding the alpha03 version of the health service, I currently have the following two questions:

  1. Is there a demo sample project for this version?
  2. I am using the Samsung Galaxy Watch 6 LTE version. Does this watch support the alpha03 version?

Thank you very much.

Hello,
Fall detection/step count for alpha 03 also should work, though I did not try yet.
Right now only this example officially available.
Try with alpha 03, and if you face any issues, let me know with sample app and dumpstate log. We will check.

Thanks,
Shamima

Ok, I see. Thank you very much!

1 Like