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
Fitness.requestPermissions([{ kind: int, access: int }]) Ask permission and return if user granted or not(Android), while, due to Apple's privacy model, always true is returned in iOS.
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: