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

No data retrieved ,when no other app like google fit or wearables attached to health connect #103

Open
akashSinghBaghel opened this issue Jun 9, 2024 · 4 comments

Comments

@akashSinghBaghel
Copy link

akashSinghBaghel commented Jun 9, 2024

Issue: No Data Fetch from Health Connect After Migrating from Google Fit
Description:
We were previously using the Google Fit REST API to fetch health statistics in our React Native app. After migrating to Health Connect, we uninstalled Google Fit from the device and have no wearables attached. Consequently, we are not receiving any data from Health Connect.

Expected Behavior:
Data should be fetched from Health Connect.

Steps to Reproduce:

Migrate from Google Fit REST API to Health Connect API.
Uninstall Google Fit from the device.
Ensure no wearables are attached or synced with Health Connect.
Attempt to fetch health data using Health Connect API.
Environment:

Health Connect Version: 2.0.5
React Native Version: 0.72.4
New architecture enabled: Yes

Additional Information:
Our app requires reading health data solely from Health Connect without relying on Google Fit or any wearables.

Request:
We are looking for a solution to ensure that health data can be read from Health Connect under the given conditions.

@davidSinghNegi
Copy link

Facing the same issue while integrating health connect , any solution ?

@akshpreetCbl
Copy link

I am also facing same issue, anybody have answer if health connect provides data when it sync data from another fitness app like "Google Fit". How to handle the case when user disabled the sinking data from third party app or user don't have any other third party app for sinking data, alert user for downloading third party app and enable sinking.

@matinzd
Copy link
Owner

matinzd commented Jun 11, 2024

Health Connect itself doesn't provide information or data to you. You either need to write data yourself or enable access from other apps to write data into it. Google Fit is different and you should not expect this library work that way.

Read more here about the comparison guide:

https://developer.android.com/health-and-fitness/guides/health-connect/migrate/comparison-guide

@matinzd
Copy link
Owner

matinzd commented Jun 11, 2024

And please for future the references, do not spam the repo with different issues and multiple accounts. Please wait for some time and I will answer your question.

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

No branches or pull requests

4 participants