-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS: isAuthorized does not work #88
Comments
hello @m-ruhl, did you find any solution for this issue ? |
Having the same issue. Once the pop up is shown, the isAuthorized method will always return true even if the user has denied those permissions |
This is in the docs...
|
Also check this issue with workaround: #50 |
Hello,
I was trying to see if the user, has given the app the permissions..
I think the wrong method is used:
react-native-fitness/ios/RCTFitness/RCTFitness.m
Line 133 in 3fdf681
Because
HKAuthorizationRequestStatus
is compared againstHKAuthorizationStatus
https://developer.apple.com/documentation/healthkit/hkauthorizationrequeststatus?language=objc
This method to my understanding only returns, if a popup will appear on requesting the permission, but won't tell if the app is authorised or not.
I think this method, is the right one https://developer.apple.com/documentation/healthkit/hkhealthstore/1614154-authorizationstatus
But as the documentation states.. it will only work on
write
not forread
Greets
Michael
The text was updated successfully, but these errors were encountered: