-
Notifications
You must be signed in to change notification settings - Fork 130
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
Add Google Play Services Sleep API? #261
Comments
I guess that the underlying data is the same, but the Fitness API is richer. Now the gotchas:
|
actually, after reading the documentation about this sleep API I am not sure that the underlying data is the same. The Fitness API uses external sources such as other apps or wearables, this new API uses the internal sensors. Maybe we can add it to this plugin as well? |
I am also unable to get the sleep data from Google Fit in the same way as Apple Health. Hoping that this issue would resolve soon 🙏 |
I am wondering how this project relates to the Google Sleep API for Android SDK >=29. I plan to create a simple App which periodically checks the current sleep state of the user and am contemplating if developing it in Kotlin via the Google Sleep API or via Cordova/Ionic and the cordova-plugin-health.
Would you have any input on this? I'd prefer to go the Cordova/Ionic route, as I am more familiar with JavaScript. Also I see an added benefit in providing the functionality of my app to iOS users as well within one codebase. 😇
From what I've gathered, this plugin allows me to read the current "sleeping state" via the respective "Health" APIs for Android and iOS. Do you have any tips if this plugin is what I am looking for with regards to reading this data ? I've consulted the Readme and found the
Warning
section mentioning that functionality is undergoing changes which may not have been implemented in the codebase as of now. If you could provide any clarification it would be much appreciated ! 🙏Sorry to bother you with this "issue", but I'd really appreciate your input during my research regarding the tech-stack of my fringe app idea :)
All the best!
The text was updated successfully, but these errors were encountered: