matinzd/react-native-health-connect

Wrong recordType value returned for ExerciseSession permission

Closed this issue · 1 comments

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)

This should be fixed in v3.1.1.