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 Simulator FaceID never popups #61

Closed
oliverbytes opened this issue Apr 23, 2022 · 9 comments
Closed

iOS Simulator FaceID never popups #61

oliverbytes opened this issue Apr 23, 2022 · 9 comments

Comments

@oliverbytes
Copy link

oliverbytes commented Apr 23, 2022

FaceID is enrolled in Simulator settings

Code

final storage = await BiometricStorage().getStorage('test');

try {
  await storage.write('value');
} catch (e) {
  return console.error('biometric error: $e');
}

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

@hpoul
Copy link
Collaborator

hpoul commented Apr 23, 2022

Iirc the simulator will not show any ui, it will just stimulate matching it non matching api responses.
Did you test on a device? https://stackoverflow.com/a/47160418/109219

@YStepiuk-DOIT
Copy link

YStepiuk-DOIT commented Apr 27, 2022

Getting the same issue.
FaceID pop-up doesn't show up.
And getting error:
PlatformException(SecurityError, Error while writing data: -25293: The user name or passphrase you entered is not correct., null, null)

FaceID is enrolled:
image

@oliverbytes
Copy link
Author

Iirc the simulator will not show any ui, it will just stimulate matching it non matching api responses. Did you test on a device? https://stackoverflow.com/a/47160418/109219

I believe it's a real issue. If you try and run it on an emulator and test getStorage() you won't see any FaceID popup. And throws an error

@YStepiuk-DOIT
Copy link

@oliverbytes Did you try with the real device?
I haven't yet checked with the real device

@oliverbytes
Copy link
Author

@oliverbytes Did you try with the real device? I haven't yet checked with the real device

Works well on a real device

@sgorbyo
Copy link

sgorbyo commented May 13, 2022

@oliverbytes Did you try with the real device? I haven't yet checked with the real device

Works well on a real device

Well, it is still an issue. To test on iOS you should have at least some device with fingerprint and another one with faceId...

@hpoul
Copy link
Collaborator

hpoul commented Jun 16, 2022

Since it's a problem with the simulator, not with the package, i'll close this issue.
If someone knows a workaround or another plugin which solves this somehow, let me know.

@mekhribonu-s-codexoptimus

@oliverbytes did you do something special for it works on real device? for me it doesn't

@RizanPSTU
Copy link

Does anyone found any solution?

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

6 participants