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

[health: ^11.0.0] #1038

Open
urvashi-k-7span opened this issue Sep 9, 2024 · 2 comments
Open

[health: ^11.0.0] #1038

urvashi-k-7span opened this issue Sep 9, 2024 · 2 comments
Labels
bugfix a bug fix

Comments

@urvashi-k-7span
Copy link

urvashi-k-7span commented Sep 9, 2024

I am using this plugin to fetch steps data.
It works perfectly fine with google fit.

In 2-3 devices I have Samsung health.

When I try to fetch data of today's date It it not returning STEPS

I/FLUTTER_HEALTH(22150): Getting data for STEPS between 2024-09-09T12:18:29Z and 2024-09-09T12:27:44.805Z, filtering by []
I/FLUTTER_HEALTH::SUCCESS(22150): returning 26 steps
I/flutter (22150): Total number of data points: 0. 

It has Steps 26 but not giving

 final healthData = await health.getHealthDataFromTypes(
          startTime: startTime,
          endTime: endTime,
          types: types,
        );
@urvashi-k-7span urvashi-k-7span added the bugfix a bug fix label Sep 9, 2024
@SlimShadyIAm
Copy link
Contributor

Samsung Health and Health Connect are separate, but Samsung Health has a setting to sync its data to Health Connect. If you enable it and give it time to sync, the steps should show up.

@urvashi-k-7span
Copy link
Author

Able to receive the data, after troubleshooting that samsung provides data of whole day at once like if I pass start date with particular time it is not providing the data, but if I pass only date with time 00:00 it will provide one single object of 24 hours at once.

Samsung Health and Health Connect are separate, but Samsung Health has a setting to sync its data to Health Connect. If you enable it and give it time to sync, the steps should show up.

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

No branches or pull requests

2 participants