getGrantedPermissions
Returns a set of all health permissions granted by the user to the calling provider app.
Results are stale after calling
revokeAllPermissionsIf your app called revokeAllPermissions, this keeps returning the revoked permissions until the app process restarts. That is a Health Connect platform limitation — see revokeAllPermissions for details and for what to do instead.
Method
getGrantedPermissions(): Promise<Permission[]>
Example
import { getGrantedPermissions } from 'react-native-health-connect';
const readGrantedPermissions = () => {
getGrantedPermissions().then((permissions) => {
console.log('Granted permissions ', { permissions });
});
};