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

catch of verifyIdentity is not returning the error code #69

Open
RRGT19 opened this issue Sep 8, 2022 · 3 comments
Open

catch of verifyIdentity is not returning the error code #69

RRGT19 opened this issue Sep 8, 2022 · 3 comments

Comments

@RRGT19
Copy link

RRGT19 commented Sep 8, 2022

  • "capacitor-native-biometric": "^4.1.3",

All the errors that are returned by the verifyIdentity inside the catch block, returns only a message property, example:

{
message: "Verification error: error"
}

The code property (tells the VerifyIdentityErrors) is missing. At least on Android, I haven't try it on iOS.

@CoderMag
Copy link

This is a error response for iOS:
{
"code":"16",
"errorMessage":"Authentication canceled."
}

And yes on android there is only a message property

@eleonorarocchi
Copy link

eleonorarocchi commented Sep 20, 2022

I have the same problem on Android. On iOs the plugin work perfectly.
On Android if i check if NativeBiometric isAvailable, I obtain:

{
  biometryType: 0,
  errorCode: 12,
  isAvailable: false
}

Code 12 is "invalidContext" error... but I do not know what is means.

@eleonorarocchi
Copy link

I have try with another android device and it work. In te first, I do not have fingerprint ID but face authentication. In the second I have finerprint.
So, the problem that I have now is with face authentication on Android.

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

3 participants