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

[iOS] write() throws an exception when biometry is not available #101

Open
martingeorgiu opened this issue Jun 23, 2023 · 1 comment
Open

Comments

@martingeorgiu
Copy link
Contributor

martingeorgiu commented Jun 23, 2023

When the biometry is not available on the device for some reason (the sensor is broken, or it has seen wrong face too many times, so it wants a passcode), it throws the following exception:

PlatformException (PlatformException(SecurityError, Error while writing data: -25293: The user name or passphrase you entered is not correct., null, null))

The reason is that in commit f514667 there is a new .biometryCurrentSet instead of the previous .userPresence, which breaks the library for such devices, resulting in an exception above.

@hpoul
Copy link
Collaborator

hpoul commented Sep 20, 2023

Maybe you can give 5.0.1-dev.1 a try. It introduces darwinBiometricOnly for StorageFileInitOptions .. When this is set to false it will use .userPresence instead of .biometryCurrentSet.
https://pub.dev/packages/biometric_storage/versions/5.0.1-dev.1

SylvainLosey pushed a commit to SylvainLosey/biometric_storage that referenced this issue Oct 19, 2023
SylvainLosey pushed a commit to alpian-swiss/biometric_storage that referenced this issue Oct 20, 2023
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

Successfully merging a pull request may close this issue.

2 participants