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

AppleHealthKit.getRestingHeartRate returning array, not HealthValue #379

Open
bill-florio opened this issue Jun 18, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@bill-florio
Copy link

Describe the bug

The interface of

 getRestingHeartRate(
      options: HealthInputOptions,
      callback: (err: string, results: HealthValue) => void,
    ): void

is incorrect, results is Array<HealthValue>

To Reproduce
access it and the result is like:

[{"endDate": "2024-06-18T16:19:00.000+0200", "id": "5CA4B701-A576-4021-BEDE-F84DA2DE0693", "metadata": {"HKWasUserEntered": 1}, "sourceId": "com.apple.Health", "sourceName": "Health", "startDate": "2024-06-18T16:19:00.000+0200", "value": 66}, {"endDate": "2024-06-18T16:07:00.000+0200", "id": "8E2F92B6-8ECC-4597-956B-99F7687A3F01", "metadata": {"HKWasUserEntered": 1}, "sourceId": "com.apple.Health", "sourceName": "Health", "startDate": "2024-06-18T16:07:00.000+0200", "value": 60}]

Expected behavior
the results should be array

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: Simulator
  • OS: iOS 17.5
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@bill-florio bill-florio added the bug Something isn't working label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant