Open traed opened 2 months ago
Out app was just rejected from Google because it requires these permissions that are technically not required.
On the IOS the same issue await Health().hasPermissions([HealthDataType.BLOOD_GLUCOSE], permissions: [HealthDataAccess.WRITE]) always return false when in settings allowed. IOS 17.6.1 iPhone 13 mini
Device / Emulator and OS
Please complete the following information for each phone and/or emulator you're experiencing this bug on:
Describe the bug
When running Health().requestAuthorization with the types STEPS and WORKOUT only, the types TOTAL_CALORIES_BURNED and DISTANCE_WALKING_RUNNING are also requested. Since they are not specified in our list of types, Health().hasPermissions always returns false, prompting Health().requestAuthorization to run every time we want to access health data.
To Reproduce
Expected behavior
Only the specified permissions should be requested.
Actual behavior
TOTAL_CALORIES_BURNED and DISTANCE_WALKING_RUNNING are requested even if not specified.
Flutter doctor
Additional information
According to the data types table, DISTANCE_WALKING_RUNNING isn't even supported on Android, but it's still requested. Why?