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

Integrate with Health Connect. #479

Open
RokeJulianLockhart opened this issue Jun 19, 2024 · 3 comments
Open

Integrate with Health Connect. #479

RokeJulianLockhart opened this issue Jun 19, 2024 · 3 comments
Labels
up for grabs Nobody is working on this at the moment

Comments

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Jun 19, 2024

Reproducer steps

  1. As https://discuss.grapheneos.org/d/8285-will-health-connect-be-removed-hopefully/13 describes, install https://play.google.com/store/apps/details?id=com.google.android.apps.healthdata (it doesn't have to be via the Play Store, since it's an AOSP component – https://www.xda-developers.com/android-14-health-connect-built-in/ explains).
  2. Attempt to allow sleep data access to a fitness application that consumes sleep data (like Google Fit).

Actual result

Plees Tracker isn't listed.

Expected behavior

It should be, and it should provide its data to the connector so that other applications can consume it.

As an example, https://play.google.com/store/apps/details?id=com.urbandroid.sleep does.

@vmiklos
Copy link
Owner

vmiklos commented Jun 19, 2024

Is there technical specification for what an app has to implement so Health Connect recognizes it? https://play.google.com/store/apps/details?id=com.urbandroid.sleep seems to be proprietary, so we can't see how it implements this, I guess.

Also, are you interested in implementing this yourself?

If so, I don't mind taking a PR.

@vmiklos vmiklos added the needinfo Further information is requested label Jun 19, 2024
@RokeJulianLockhart
Copy link
Author

RokeJulianLockhart commented Jun 21, 2024

#479 (comment)

@vmiklos, interested, but not necessarily capable. I don't even know Java, much less AOSP development. I'll provide one if I become able, but it shan't be for a while.

I looked in https://play.google.com/store/apps/collection/promotion_3000e6f_googlefit_all for an OSS implementation of the API, but I didn't see one. I expect that it's documented adequately at https://developer.android.com/health-and-fitness/guides/health-connect/migrate/comparison-guide though.

@vmiklos
Copy link
Owner

vmiklos commented Jun 21, 2024

https://developer.android.com/health-and-fitness/guides/health-connect seems to be actual documentation. For now, this is up for grabs, if I get to this myself, I'll update this issue.

@vmiklos vmiklos added up for grabs Nobody is working on this at the moment and removed needinfo Further information is requested labels Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
up for grabs Nobody is working on this at the moment
Projects
None yet
Development

No branches or pull requests

2 participants