-
Notifications
You must be signed in to change notification settings - Fork 725
Add Unit Support for Health Data Types & Handle Rate Limiting #1204
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
base: master
Are you sure you want to change the base?
Conversation
try catch getGrantedPermissions calls
Thank you for the PR, Why the following check was removed from if (healthConnectAvailable) {
healthConnectClient =
HealthConnectClient.getOrCreate(
context!!
)
} Also, when running the example app it returns with the following error:
|
We are testing the refactored Android version for Health (See PR #1211 - Branch |
@iarata Thanks for looking at this, the check removal was a mistake. I will update this pr, adding back the check, a fix for the logs, and a sync with #1211 shortly. |
Add Unit Support for Health Data Types
Changes
This PR adds further unit conversion support to the Health's Android implementation, specifically for Health Connect. Key improvements:
Stops crashes discussed in #1028 (underlying issue should be fixed in another pr)
Android (Kotlin)
Dart API Enhancements
Benefits
This implementation preserves all existing functionality while extending the plugin's capabilities to handle different measurement units consistently.