You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Description I have to report Multiple
I am using AppleHealth.getAuthStatus but it is giving me same response as 1. is there any workaround to solve this issue. Second Issue
i am getting Multiple Warning Sending Healthkit:activity no listeners registered.
Expected behaviour
unnecessary registered should not be fired or there is a method to disable these events.
Values of getAuthStatus while toggling the permission
Screenshots
Device: [e.g. iPhone16]
Additional context
where should we write the code for listener to read it
and for multiple listener is this the only way to write the code without empty dependency as mentioned in the doc
useEffect(() => {
if (!updateDataFromAppleHealth.flag) {
const throttledDispatch = throttle((type) => {
dispatch(dataFetchFlag({ flag: true }));
}, 5000);
TarunBhan
changed the title
getAuthStatus Method Always returning if permission is denied or granted.
getAuthStatus Method Always returning 1 if permission is denied or granted.
Oct 24, 2024
I've also found the response from getAuthStatus completely unreliable. It's not clear to me whether the result of initHealthKit is expected to indicate anything with regard to permissions (I feel like it should), but it seems to always be 1, regardless of whether deny all access or not. As a workaround, I've tried to eagerly request healthkit data (e.g. activity summary) and use the presence of an error to determine whether permission has been denied, but that even seems to be unreliable, as I'll just get an empty array with no error (if no permissions were ever granted) or zero'd out values (if specific metrics were granted then revoked). The inability to determine the permission status makes it very challenging to use this library in a production app.
Bug Description
I have to report Multiple
I am using AppleHealth.getAuthStatus but it is giving me same response as 1. is there any workaround to solve this issue.
Second Issue
i am getting Multiple Warning Sending Healthkit:activity no listeners registered.
Expected behaviour
unnecessary registered should not be fired or there is a method to disable these events.
Values of getAuthStatus while toggling the permission
Screenshots
Additional context
where should we write the code for listener to read it
and for multiple listener is this the only way to write the code without empty dependency as mentioned in the doc
useEffect(() => {
if (!updateDataFromAppleHealth.flag) {
const throttledDispatch = throttle((type) => {
dispatch(dataFetchFlag({ flag: true }));
}, 5000);
});
The text was updated successfully, but these errors were encountered: