-
Notifications
You must be signed in to change notification settings - Fork 130
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
blood_pressure query ignores limit option on iOS #244
Comments
query correlation type in the native code misses the limit argument. |
looks like it's not possible to limit correlation types: we can enforce this in the JS code though |
It would be enough to query separately the systolic and diastolic datatypes and combine them into a result like the current |
yes, limiting the results is easy! |
No, not this way. This would unnecessarily fetch big chunk of data each time for example if I would like to check the newest reading in last 30 days. I would rather stay with the current solution of querying separate datatypes . |
we can do both... leave the separate BPs and also actually use the limit parameter with the ugly hack. |
I've got two measurements in the Health app. I call query on the health object and specify limit as 1 to get the latest record in the data range, but in the result I get two.
In result two data objects:
I've tried to fix the code in the
www/ios./health.js
line 269 where query specific options are created without the limit option and it to the options, but it's ignored in the platform sources I think.https://github.com/dariosalvi78/cordova-plugin-health/blob/master/www/ios/health.js#L269
Any ideas?
The text was updated successfully, but these errors were encountered: