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

Google Health Connect #30

Open
akul43 opened this issue Sep 8, 2023 · 3 comments
Open

Google Health Connect #30

akul43 opened this issue Sep 8, 2023 · 3 comments
Assignees
Labels
Android Any task related to Android native code

Comments

@akul43
Copy link
Collaborator

akul43 commented Sep 8, 2023

Implement Google Health connect modules to the app.
I found this library: https://github.com/matinzd/react-native-health-connect that provides a react-native packaged library of health connect api. Check documentation for how to use.

Create a new folder in the service for all these files.

@akul43 akul43 added the Android Any task related to Android native code label Sep 13, 2023
@akul43 akul43 moved this to 🏗 In progress in Smart Clothing Mobile App Project Sep 20, 2023
@qtdinh
Copy link
Collaborator

qtdinh commented Feb 22, 2024

This task was not possible last semester, because Google had made an update where the Health Connect, instead of being a separate application, was converted into a framework module inside Android (as of Android 14).

The problem with an API being updated in Android is that when something gets deprecated in Android, you cannot use the old version. Furthermore, the transition to a framework module broke any previous ways to request permissions or attempts to access the health data.

However, thankfully permission support for Android 14 has been implemented. Refer to this release update here: https://github.com/matinzd/react-native-health-connect/releases/tag/v2.0.0

From here onwards, we'll reattempt trying to integrate Health Connect into the application.

@qtdinh
Copy link
Collaborator

qtdinh commented Mar 7, 2024

Great news

image

The reattempt on Health Connect is successful, thanks to the updates on both the library and React Native. Hopefully Google doesn't make any more updates that break ways to access the API. We got the successful build along with Health Connect integration!

@qtdinh qtdinh self-assigned this Mar 8, 2024
@Viper-one-one
Copy link
Collaborator

Health Connect User Flow completed and functional for Android 8-13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Any task related to Android native code
Projects
Status: 🏗 In progress
Development

No branches or pull requests

3 participants