-
Notifications
You must be signed in to change notification settings - Fork 68
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
Feature request - Option to filter manually entered data #47
Comments
Any news on this? |
this seems to work, still needs testing. Perhaps there is a solution for android also
|
Hi, It seems like this should be exposed as an option when querying (IE: either 'get all steps' or 'get not-manually-entered-steps) rather than it being 'hard ignored' all the time. Is this project still active? If so I might refactor that code to make it an option and then do an MR in :) |
Hi @IsaacInsoll , |
Hi and thanks for this neat package!
I'm submitting a feature request for the possibility to left out user entered data when querying for distance/steps. This would enable to use only "real" data.
As a test, I managed to implement it in the iOs version of GetSteps by doing the following:
NSPredicate *sourcePredicate = [NSPredicate predicateWithFormat:@"metadata.%K != YES", HKMetadataKeyWasUserEntered];
HKStatisticsCollectionQuery *query = [[HKStatisticsCollectionQuery alloc] initWithQuantityType:type quantitySamplePredicate:nil options:HKStatisticsOptionCumulativeSum anchorDate:anchorDate intervalComponents:interval];
I'd like to work on that feature request, but I do not master Swift nor Java and haven't experienced working on a bridge between RN and Native. I'm more than happy to help you, let me know how I could proceed!
Cheers
The text was updated successfully, but these errors were encountered: