Open Poovit-B opened 11 months ago
+1
+1
+1
please someone fix this I also need to know if the permissions were rejected or not
Hi, I also ran into this issue, it really crucial to know whether the user approved / denied permissions. I also don't mind helping to add that functionality and open PR, will anyone be available to approve it and release new version?
After struggling with this a bit I've found out that this data is deliberately not shared by Apple due to privacy reasons. https://developer.apple.com/documentation/healthkit/authorizing_access_to_health_data
As part of the privacy protections, your app doesn’t know whether someone granted or denied permission to read data from HealthKit. If they denied permission, attempts to read data from HealthKit return only samples that your app successfully saved to the HealthKit store.
We are experiencing an issue where, after initializing AppleHealthKit a second time using initHealthKit, no permission dialog is shown, but the response code remains 1. This behavior occurs consistently.
Please investigate this issue or guide how we might resolve it.
Describe the bug
First Attempt:
Second Attempt:
HealthKit Availability Check:
Permission Status Check: