Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve Sleep data using Health Platform #100

Open
duy-thinkvitals opened this issue Jul 31, 2023 · 2 comments
Open

Retrieve Sleep data using Health Platform #100

duy-thinkvitals opened this issue Jul 31, 2023 · 2 comments

Comments

@duy-thinkvitals
Copy link

Hi team,

I would like to retrieve sleep session data from Health Platform. However, it always returns null. Could you please assist me on how to retrieve the sleep data ?

Note: it is a standalone app

Device: Samsung Watch 4

@cancan101
Copy link
Contributor

What sort of sleep data are you referring to? Are you looking to subscribe to the asleep / awake events?

@duy-thinkvitals
Copy link
Author

I want to get the total amount of sleep time that has been recorded. From the Health Platform API docs, it does provide retrieving sleep stage from IntervalData DataType.SleepStageDataType. However, the total is always returning null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants