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

Biometrics not working on iOS 18 #294

Open
radekzz opened this issue Sep 25, 2024 · 5 comments
Open

Biometrics not working on iOS 18 #294

radekzz opened this issue Sep 25, 2024 · 5 comments

Comments

@radekzz
Copy link

radekzz commented Sep 25, 2024

Hi guys, library works fine on Android and iOS 17, but not on iOS 18.

 rnBiometrics.biometricKeysExist().then((resultObject) => {
    const { keysExist } = resultObject;

    if (keysExist) {
      console.log('Keys exist');
    } else {
      console.log('Keys do not exist or were deleted');
    }
  });

Always result in keysExist = false

const { success, error } = await rnBiometrics.simplePrompt({
      promptMessage: 'Confirm fingerprint',
      cancelButtonText: intl.formatMessage({ id: 'common.cancel' }),
    });

    if (success) {
      Logger.log('🎟', 'Successful biometrics provided');
    }
    if (error) {
      Logger.log('🎟', `Biometrics prompt error: ${error}`);
    }

Always result in
Biometrics prompt failed with exception: Error Domain=com.apple.LocalAuthentication Code=-1000 "UI service connection invalidated." UserInfo={NSDebugDescription=UI service connection invalidated., NSLocalizedDescription=Authentication failed.}
but i think this is only iOS 18 simulator bug. However on real device prompt always return false.

Do you have any idea? As i see library is not maintained anymore so i hope someone faced this problem and can give me some advice.

@Hat52
Copy link

Hat52 commented Oct 8, 2024

Facing the same issue, have you been able to fix this?

@radekzz
Copy link
Author

radekzz commented Oct 8, 2024

Unfortunately not. However it seems not all real devices are facing this issue.
I also tried other libraries with same result.

@amitkumar144
Copy link

If you are using react-native-permission lib then used this version "react-native-permissions": "^3.8.4",

@fellipe-ribeiro
Copy link

If you are using react-native-permission lib then used this version "react-native-permissions": "^3.8.4",

@amitmehtacode Are you saying asking Face ID request permission before with "react-native-permissions" fix this issue?

@fellipe-ribeiro
Copy link

I did some research and it seems to be a bug only in the simulator on IOS 18 and not in the lib, it seems to work on real devices.

Case link: https://forums.developer.apple.com/forums/thread/761533

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants