-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
HKMetadataKeySyncIdentifier / HKMetadataKeySyncVersion are not updated when passed in Quantity.metadata #46
Comments
HKMetadataKeySyncIdentifier and HKMetadataKeySyncVersion is relevant, setting them in QuantityHarmonized.metadata is ignored
|
I'm using iphone 13 mini, ios 15.5. Unable to set HKMetadataKeySyncVersion as any type in Quantity.harmonized['metadata']
QuantityHarmonized(100, 'kcal', <String, String>{ throws @objc class AppDelegate: FlutterAppDelegate {
QuantityHarmonized(100, 'kcal', <String, dynamic>{ Debug output in Quantity.swift: dictionary["metadata"] : Optional({ metadata: nil |
Hi @umangsh Please check new 2.1.0 version (be sure that updated HealthKitReporter to 2.0.0 is used) |
Is your feature request related to a problem? Please describe.
Is it possible to write HKCumulativeQuantitySample values? For instance, I'd like to write QuantityType.dietaryEnergyConsumed values per day. Sample code:
Currently, when data is saved this way, calorie values are split per hour in apple health.
In this example, 100 calories are added at 12 noon, and apple health displays (100/12) calories consumed every hour (midnight - 1, 1-2, ... )
Describe the solution you'd like
Cumulative daily consumption shown as a single data point.
The text was updated successfully, but these errors were encountered: