Skip to content
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

request(PERMISSIONS.IOS.FACE_ID) always return denied when press on allow button #903

Closed
3 tasks done
amitkumar144 opened this issue Oct 24, 2024 · 4 comments
Closed
3 tasks done
Assignees
Labels
bug Something isn't working

Comments

@amitkumar144
Copy link

Before submitting a new issue

  • I tested using the latest version of the library, as the bug might be already fixed.
  • I tested using a supported version of react native.
  • I checked for possible duplicate issues, with possible answers.

Bug summary

when i request the face ID permission request(PERMISSIONS.IOS.FACE_ID)
it always return denied when user press on allow button and when user press on don't allow it gave block

working fine on version "react-native-permissions": "^3.8.4",

Library version

5.0.1

Environment info

"react-native": "^0.71.10",
"react-native-permissions": "^5.0.1",

Steps to reproduce

  1. ask the permission
  2. allow the permission
  3. gaves denied always

Reproducible sample code

const FaceIdPermission = async () => {
  if (Platform.OS === 'ios') {
    // Request permission for Face ID
    const res = await request(PERMISSIONS.IOS.FACE_ID);
    console.log("🚀 ~ res ~ res:", res);
    return res === RESULTS.GRANTED;
  } else {
    return true; // Face ID is not applicable on Android
  }
};
@amitkumar144 amitkumar144 added the bug Something isn't working label Oct 24, 2024
@amitkumar144
Copy link
Author

let res = await check(PERMISSIONS.IOS.FACE_ID);

this giving me granted always even before permission modal comes

@zoontek
Copy link
Owner

zoontek commented Oct 24, 2024

I identified the issue, will fix it and release asap.

@zoontek
Copy link
Owner

zoontek commented Oct 24, 2024

Fixed in 5.0.2

@amitkumar144
Copy link
Author

Thanks @zoontek For quick fix. I have tested this and it is working as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants