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

How to get Read Sleep Data by sessions of type sleep as Document #341

Open
taiphamevizi opened this issue Feb 28, 2023 · 4 comments
Open

Comments

@taiphamevizi
Copy link

I have read this document https://developers.google.com/fit/scenarios/read-sleep-data#android and don't know how to call from this library.
Please help, thank you.

@aboveyunhai
Copy link
Collaborator

aboveyunhai commented Mar 3, 2023

if you already went through the authentication stage. You can add sleep permission and then create and get sleep data.
https://github.com/StasDoskalenko/react-native-google-fit#15-retrieve-sleep

@taiphamevizi
Copy link
Author

if you already went through the authentication stage. You can add sleep permission and then create and get sleep data. https://github.com/StasDoskalenko/react-native-google-fit#15-retrieve-sleep

I have checked sleep permission when grant permission after login, but the returned data still has no sleepStage information.

@taiphamevizi
Copy link
Author

Is anyone here to support? thanks

@MUZAFFAR-PURELOGICS
Copy link

I am getting empty granularity array every time.
No data for sleep.
Is anyone have any support or solution ?

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

3 participants