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

Issue with Calories Data Retrieval from Samsung Health via react-native-health-connect #187

Open
nidhi03-dev opened this issue Dec 19, 2024 · 0 comments

Comments

@nidhi03-dev
Copy link

Hello,

I am facing an issue while using the react-native-health-connect SDK to retrieve calorie data from Samsung Health. The problem is specific to Samsung Health integration and works as follows:

  • When I perform an exercise and record it, I can retrieve calorie data accurately through the SDK.
  • However, if I do not enable exercise and simply burn calories through steps, the SDK does not return the calorie data for the steps, except for resting calories.

This issue makes it impossible to track calories burned through everyday activities like walking or general movement unless the user explicitly starts and records an exercise.

To summarize:

  • Expected Behavior: Calories burned through steps (excluding resting calories and without an exercise session) should also be available in the calorie data fetched via the SDK.
  • Current Behavior: Calories are only available if an exercise session is started and recorded, while calories from steps are not included.

Can you please confirm:

  1. Is this behavior a known limitation or issue with Samsung Health’s data integration through react-native-health-connect?
  2. Are there any specific permissions or settings required to fetch calories burned through steps without starting an exercise, excluding resting calories?
  3. Is there any workaround or fix to address this issue?

I integrated this package through the reference -> https://matinzd.github.io/react-native-health-connect/docs/permissions

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

1 participant