You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After doing some intensive debugging it seems like following function call returns all types of sleep data in its list: while what its suppose to return is only awake data
To Confirm that it was returning data related to all Sleep Data I double checked with the HealthConnect App, to see if the data aligns:
By Comparison you can see that it specifies the dataType is SLEEP_AWAKE, yet the data seems to be returning all types of SLEEP.
In the case I am doing something wrong or missing something PLEASE LET ME KNOW. Since this SLEEP data is essential for what I am working on.
Flutter Doctor:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.10.5, on Microsoft Windows [Version 10.0.19045.3208], locale en-CA)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.5)
[√] Android Studio (version 2022.2)
[√] VS Code (version 1.79.1)
[√] Connected device (5 available)
[√] Network resources
• No issues found!
Device Used: Galaxy Tab A, Android Version 11 API33
Any help would be much appreciated!!
The text was updated successfully, but these errors were encountered:
Same issue. When I request data for these types [HealthDataType.SLEEP_DEEP, HealthDataType.SLEEP_AWAKE, HealthDataType.SLEEP_ASLEEP, HealthDataType.SLEEP_REM] using health.getHealthDataFromTypes(), I get duplicate entries for all of them meaning - if I get a 14 min entry from 2:00 PM to 2:14 PM - I will see 4 entries for all mentioned sleep types identical in values of duration and time and just differing in type - which shouldn't be. If I try to get SLEEP_SESSION in Android and add that to this list, it works perfect. Another fact, Sum of all entries for any of these data types will equal to the actual duration of sleep sessions in that time.
After doing some intensive debugging it seems like following function call returns all types of sleep data in its list: while what its suppose to return is only awake data
await health.getHealthDataFromTypes(leftBound, rightBound, [HealthDataType.SLEEP_AWAKE]);
Full snippets of code:
I printed out the list information data:
To get the following output:
To Confirm that it was returning data related to all Sleep Data I double checked with the HealthConnect App, to see if the data aligns:
By Comparison you can see that it specifies the dataType is SLEEP_AWAKE, yet the data seems to be returning all types of SLEEP.
In the case I am doing something wrong or missing something PLEASE LET ME KNOW. Since this SLEEP data is essential for what I am working on.
Flutter Doctor:
Device Used: Galaxy Tab A, Android Version 11 API33
Any help would be much appreciated!!
The text was updated successfully, but these errors were encountered: