cph-cachet / flutter-plugins

A collection of Flutter plugins developed by CACHET
551 stars 681 forks source link

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

Open softkot opened 9 months ago

softkot commented 9 months ago

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.

bardram commented 9 months ago

Same problem here.

The hasPermissions() always return null.

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

emrszr commented 8 months ago

Same issue exists. I am using version ^9.0.1

Some1Somewhere commented 7 months ago

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

AmmarTN commented 1 month ago

same problem The hasPermissions() always return null.

health 11.1.0 on iOS