Skip to content

Commit

Permalink
get insulin delivery reason from apple health
Browse files Browse the repository at this point in the history
  • Loading branch information
António Valente committed Jan 10, 2024
1 parent 0a63b5b commit d82d996
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/health/ios/Classes/SwiftHealthPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ public class SwiftHealthPlugin: NSObject, FlutterPlugin {
"date_to": Int(sample.endDate.timeIntervalSince1970 * 1000),
"source_id": sample.sourceRevision.source.bundleIdentifier,
"source_name": sample.sourceRevision.source.name,
"metadata": dataTypeKey == INSULIN_DELIVERY ? sample.metadata : nil
]
}
DispatchQueue.main.async {
Expand Down

0 comments on commit d82d996

Please sign in to comment.