flutter-plugins icon indicating copy to clipboard operation
flutter-plugins copied to clipboard

[HEALTH 9.0.0] Unable to determine health access on IOS.

Open softkot opened this issue 1 year ago • 4 comments

  • Device: [ Emulator iPhone 8]
  • OS: [ IOS]

Install fresh app. Run following code, granting all required permissions on requestAuthorization phase.

final permissions_pre=await health.hasPermissions([HealthDataType.STEPS]); // is null

final request = await health.requestAuthorization([HealthDataType.STEPS],permissions:[HealthDataAccess.READ]); // grant access request==true 

final permissions_post=await health.hasPermissions([HealthDataType.STEPS]); // is asserted to be not null, but it does. 

The problem is permissions_pre is equal to permissions_post and both are null

There is no way to understand were the permission dialog ever asked and any permissions was granted or denied.

softkot avatar Feb 03 '24 11:02 softkot

Same problem here.

The hasPermissions() always return null.

I'm version 8.1.0 of the health package, so an issue before version 9....

bardram avatar Feb 10 '24 16:02 bardram

Same issue exists. I am using version ^9.0.1

emrszr avatar Mar 21 '24 07:03 emrszr

Any fix for this? How do we tell the user if their Health Data is connected or not on iOS

Some1Somewhere avatar Apr 11 '24 23:04 Some1Somewhere