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

Add PERMISSION_READ_HEALTH_DATA_IN_BACKGROUND #199

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JPGrefaldo
Copy link

Hi @matinzd,

This is my first time contributing to a GitHub projects, and I appreciate the opportunity! I’ve made some changes to enable PERMISSION_READ_HEALTH_DATA_IN_BACKGROUND, and I hope it aligns with the project's goals. Please let me know if there are any improvements or changes needed.

Thank you for your time and for maintaining this great project! 🚀

@JPGrefaldo
Copy link
Author

@matinzd Please review when you have time 🙏

@@ -331,6 +335,7 @@ export interface PowerRecord extends IntervalRecord {
}

export type HealthConnectRecord =
| PermissionReadHealthDataInBackground
Copy link
Owner

@matinzd matinzd Feb 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be a part of HealthConnectRecord because when you are reading or writing into it, you'll get the suggestion for the permission as well which is not a health record. Please consider making a separate function or move it to requestPermission type.

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

Successfully merging this pull request may close these issues.

2 participants