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

Not Detecting TouchID not enrolled #233

Open
skyshine999 opened this issue Jul 3, 2019 · 4 comments
Open

Not Detecting TouchID not enrolled #233

skyshine999 opened this issue Jul 3, 2019 · 4 comments

Comments

@skyshine999
Copy link

Using this plugin i can check supporting and authentication but whether user enrolled touchid or not . How can we check it

@skyshine999 skyshine999 changed the title Detect TouchID not enrolled Not Detecting TouchID not enrolled Jul 3, 2019
@bryantee
Copy link

I second this. Would love if we could expose whether device is enrolled before I prompt user for authentication.

@JeffreyLeeDave
Copy link

I honestly thought that isSupported was suppose to do that. I think there is a bug in this package. it's suppose to return a LAErrorTouchIDNotEnrolled error when this happens. I know for android it returns false when it's not enrolled.

@JeffreyLeeDave
Copy link

Hey if you are still encountering this issue, look here:
#171

Basically you just need to pass in {passcodeFallback: false}. Technically it is in the documentation. It's the comment in the example provided here:
https://github.com/naoufal/react-native-touch-id#issupported

I don't know why that field is coupled with this error logic, but this is probably what caused a lot of people confusion

@JeffreyLeeDave
Copy link

I will say though, one thing I hate about doing that is that I get a typescript error. This package is really weird the type for IsSupportedConfig does not have have passcodeFallback as a property.

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