permission to READ_CALL_LOG is not working in react-native expo

why can’t get the permission to READ_CALL_LOG in react-native expo with this code? is possible to access call log in expo?

const CallLogFunc = async () => {
  try {
    const granted = await PermissionsAndroid.request(
      PermissionsAndroid.PERMISSIONS.READ_CALL_LOG,
      {
        title: " Permission neeeded",
        message: "Allow App to access your phone call logs",
        buttonNeutral: "Ask Me Later",
        buttonNegative: "Cancel",
        buttonPositive: "OK",
      }
    );
    if (granted === PermissionsAndroid.RESULTS.GRANTED) {
      console.log("CALL LOG permission granted");
    } else {
      console.log("CALL LOG permission denied");
    }
  } catch (err) {
    console.log(err);
  }
};

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.