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 - isAvailable function generalize the error code, however authenticate function have proper error code mapping #226

Open
jainank opened this issue Feb 11, 2020 · 3 comments · May be fixed by #227

Comments

@jainank
Copy link

jainank commented Feb 11, 2020

Bug report

Description

For iOS application, I am calling isAvailable function when touchID is locked because of multiple invalid attempts.
My expectation was that the application will return error code:
case BIOMETRIC_LOCKED_OUT = -111

However it retuned:
case BIOMETRIC_UNKNOWN_ERROR = -100

Environment

  • Plugin version
    2.2.2

Platform:
iOS

@jainank jainank added the bug label Feb 11, 2020
@NiklasMerz
Copy link
Owner

Looks like this error should be supported:

case BIOMETRIC_LOCKED_OUT = -111

I guess we need to detect it here:

The error should be thrown correctly while using the show function?

Adding @greaterking because he is more familiar with this new iOS code.

@jainank
Copy link
Author

jainank commented Feb 12, 2020

I forked the repo, and fixed it in my local.
Let me know if you want me to create PR. Happy to help!

@NiklasMerz
Copy link
Owner

Awesome. Of course create the PR and we will review it. Looking forward.

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