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

health: ^3.3.1 #466

Closed
RiyaJaggi28 opened this issue Dec 1, 2021 · 2 comments
Closed

health: ^3.3.1 #466

RiyaJaggi28 opened this issue Dec 1, 2021 · 2 comments
Labels
bugfix a bug fix

Comments

@RiyaJaggi28
Copy link

health

Device / Emulator and OS

  • Device: [iPhone 12 Simulator]
  • OS: [e.g. iOS 15.0]

Describe the bug
Crash when trying to access permission for EXERCISE_TIME.

To Reproduce
types = [
HealthDataType.EXERCISE_TIME
];

health.requestAuthorization(types)

Expected behavior
Asks user to grant permissions

Actual behavior
Crash with exception ‘Authorization to share the following types is disallowed: HKQuantityTypeIdentifierAppleExerciseTime’

@oakmad @ristiisa @Whathecode @drakmail @marinat

@matsunanaro
Copy link

matsunanaro commented Dec 8, 2021

Duplicate of #464

The crash was due to the implicit request for WRITE access.
PR #462 has been modified to fix this one at once.

@bardram
Copy link
Contributor

bardram commented Dec 29, 2021

This PR has been merged and published as version 3.4.0 of the plugin.

@bardram bardram closed this as completed Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix a bug fix
Projects
None yet
Development

No branches or pull requests

3 participants