Skip to content

When querying for CategoryType.acne or a bunch of other symptoms, app is either stuck or crashes. #83

@vaibhav891

Description

@vaibhav891

Describe the bug
When querying for CategoryType

  • Acne
  • Abdominal cramps
  • Bloating
  • Breast Pain
  • Fatigue
  • Headache
  • Mood Changes &
    Quantity type
  • Basal body temprature,

CategoryQuery & QuantityQuery does not seem to ever return. Xcode seems to throw some error (See screenshot below).
I am not very conversant with Swift so could not exactly identify the issue. But it could be that we are trying to return HKCategoryValuePresence while expected is HKCategoryValueSeverity .

To Reproduce
In the example app, try to query any of these mentioned types. This will fail if permission is granted and a corresponding entry exists in apple health.

Expected behavior
The query should return the correct values.

Screenshots

Image

Desktop (please complete the following information):

  • OS: MacOS
  • Browser [e.g. chrome, safari]
  • Version 15.1.1 (24B91)

Smartphone (please complete the following information):

  • Device: iPhone 12 mini
  • OS: iOS 18.2
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions