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

Not getting source information when requesting mindful session from apple health #376

Open
sarika-dev opened this issue May 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sarika-dev
Copy link

sarika-dev commented May 18, 2024

Describe the bug
Not getting source information when requesting mindful session data from apple health.
I see, someone had created PR for this - #200 but it's closed.

To Reproduce
Call the method:

AppleHealthKit.getMindfulSession(
  options,
  (err: string, results: Array<HealthValue>) => {
    if (err) {
      console.log('error getting mindful session: ', err)
      return
    }
    // returns array of mindful session data
    console.log(results)
  },
)

Actual behavior

[
  {
    "startDate": "2016-07-08T12:00:00.000-0400",
    "endDate": "2016-07-08T12:00:00.000-0400"
  },
  {
    "startDate": "2016-07-08T12:00:00.000-0400",
    "endDate": "2016-07-08T12:00:00.000-0400"
  }
]

Expected behavior

[
  {
    "startDate": "2016-07-08T12:00:00.000-0400",
    "endDate": "2016-07-08T12:00:00.000-0400",
    "sourceId": "com.apple.Health",
    "sourceName": "Health"
  },
  {
    "startDate": "2016-07-08T12:00:00.000-0400",
    "endDate": "2016-07-08T12:00:00.000-0400",
    "sourceId": "com.apple.Health",
    "sourceName": "Health"
  }
]

Smartphone (please complete the following information):

  • Device: iPhone 15 Pro(Simulator)
  • OS: iOS17.2
  • Version: 17
@sarika-dev sarika-dev added the bug Something isn't working label May 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