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

Wrong recordType value returned for ExerciseSession permission #152

Closed
mphill opened this issue Sep 9, 2024 · 1 comment · Fixed by #153
Closed

Wrong recordType value returned for ExerciseSession permission #152

mphill opened this issue Sep 9, 2024 · 1 comment · Fixed by #153

Comments

@mphill
Copy link

mphill commented Sep 9, 2024

Describe the bug

When requesting permissions, the wrong string value is returned:

const permissions = await getGrantedPermissions();

=> [{"accessType": "write", "recordType": "Exercise"}]

The typescript type for Permission.recordType is ExerciseSession

Environment:

  • Health Connect Version: 3.1.0
  • React Native Version: 0.74.5
  • New architecture enabled: No
  • Using Expo: Prebuild(Dev Client)
  • Android API Level: API 34 (Android 14)
@matinzd
Copy link
Owner

matinzd commented Sep 10, 2024

This should be fixed in v3.1.1.

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