HealthKit icon indicating copy to clipboard operation
HealthKit copied to clipboard

Manual Step Count Values

Open KhomkribSingh opened this issue 9 years ago • 3 comments
trafficstars

Currently this plugin can show both verified step data and manual input step data. How to fact or verify that step count values from plugin are manual input data or not?

KhomkribSingh avatar Sep 06 '16 02:09 KhomkribSingh

I don't think there is a way, they are both considered steps.

yustein avatar Oct 02 '16 19:10 yustein

Currently I found some solution from here http://stackoverflow.com/questions/31184628/ignore-manual-entries-from-apple-health-app-as-data-source

I use "querySampleTypeAggregated". In "HealthKit.m" I added predicate at the line 1433: NSPredicate *predicate = [NSPredicate predicateWithFormat:@"metadata.%K != YES", HKMetadataKeyWasUserEntered]; instend of "nil"

It's work for me. Any ideas?

KhomkribSingh avatar Nov 09 '16 02:11 KhomkribSingh

It would be great to have a filter param.

anibalsanchez avatar Jan 24 '18 16:01 anibalsanchez