Skip to content
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

Query time when record gets added to the Health Kit #93

Open
prabhjotAppmobi opened this issue Sep 20, 2017 · 0 comments
Open

Query time when record gets added to the Health Kit #93

prabhjotAppmobi opened this issue Sep 20, 2017 · 0 comments

Comments

@prabhjotAppmobi
Copy link

prabhjotAppmobi commented Sep 20, 2017

Is there any way to retrieve the exact time when record gets added to the Health kit? I have been using the “querySampleType” method and passing the startDate and endDate parameters for quering Data from Health Kit plugin but when two records are added one after another in a short span of time, The start date returned by plugin is same for two records. This problem can be solved when seconds will be returned with minutes in start Date.

For Example:

[{"quantity":342.2961720001028,"endDate":"2017-09-18T16:24:00+05:30","startDate":"2017-09-18T16:24:00+05:30","UUID":"64133C72-EFDF-4C7D-A585-FDC0276D1FE0","sourceBundleId":"com.apple.Health","sourceName":"Health","metadata":{"HKWasUserEntered":1}},{"quantity":360.3117600001082,"endDate":"2017-09-18T16:24:00+05:30","startDate":"2017-09-18T16:24:00+05:30","UUID":"F58A8275-8850-4DB3-8BC1-F320B95B738A","sourceBundleId":"com.apple.Health","sourceName":"Health","metadata":{"HKWasUserEntered":1}},{"quantity":378.3273480001136,"endDate":"2017-09-18T16:23:00+05:30","startDate":"2017-09-18T16:23:00+05:30","UUID":"75BC0176-39B9-41A7-AAE5-F3788B171D22","sourceBundleId":"com.apple.Health","sourceName":"Health","metadata":{"HKWasUserEntered":1}}]

Here In above Data the two records (marked as bold) start Date is same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant