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

RCTTouchIDUnknownError - 100% of the time after certain criteria #60

Closed
ben-snaize opened this issue Nov 10, 2017 · 12 comments
Closed

RCTTouchIDUnknownError - 100% of the time after certain criteria #60

ben-snaize opened this issue Nov 10, 2017 · 12 comments

Comments

@ben-snaize
Copy link

ben-snaize commented Nov 10, 2017

Hi,

I've implemented the following rough structure which fires before allowing access to stored login API credentials.

TouchID.isSupported()
        .then(supported => {
        TouchID.authenticate(`${Manifest.name} App credentials for ${username}`)
                  .then(success => {
                          // ... access credentials & login
                  })
                  .catch(err => {
                          // ... don't login
                  })
        })

It works just fine until a particular point in production Apps. After which, authenticate() gives back RCTTouchIDUnknownError 100% of the time. I can happily use isSupported() to attempt to prompt the user and re-enable Touch ID, but it still refuses to show the Touch ID dialogue.

Are there any known issues with this, or any particular reasons why Touch ID would be failing with an 'unknown' error?

Sorry for any vagueness here but I'm at a point where there's no further info available to me. The application's state is correct as I would expect the Touch ID call to fire at this point, but the error is thrown instead.

@ben-snaize ben-snaize changed the title RCTTouchIDUnknownError - after a certain time period RCTTouchIDUnknownError - 100% of the time after certain criteria Nov 10, 2017
@Shinichi52
Copy link

Shinichi52 commented Dec 1, 2017

i has same issue :(

@zibs
Copy link
Collaborator

zibs commented Dec 5, 2017

@Shinichi52 @ben-snaize If a user has failed to authenticate 3+ times with their Touch ID, iOS will disable Touch ID until the user has entered their passcode in again from the lock screen to re-enable touch ID. So that no matter how many times you call authenticate it will not prompt the dialog until the Touch ID has been re-enabled by the user.

Do you think that this could be what's happening?

@Shinichi52
Copy link

@zibs no, I don't thing so. I have show passcode when Touch ID isn't support (i'm using https://github.com/naoufal/react-native-passcode-auth for passcode). But It works just fine until a particular point in production Apps. After which, authenticate() gives back RCTTouchIDUnknownError 100% of the time.

@davidgruebl
Copy link
Contributor

davidgruebl commented Dec 21, 2017

I started experiencing the very same issue recently. However I've not yet understood what the clear pattern is here.
This only seems to occur on device and even before the native touch id modal is shown.

@ben-snaize
Copy link
Author

Any update on this @naoufal?

@naoufal
Copy link
Owner

naoufal commented Jan 16, 2018

@ben-snaize Happy to take a look if you can provide a reproducible example.

@davidgruebl
Copy link
Contributor

Based on the changes I made in this pr https://github.com/naoufal/react-native-touch-id/pull/78/files I figured that the error causing this behaviour is LAErrorNotInteractive

I'm not sure what is causing this error on the native layer, also there doesn't seem to be munch information around this error code.

@nisguptaGit
Copy link

nisguptaGit commented Apr 3, 2018

hi @davidgruebl ,

Can you please also add below error code :
LAErrorBiometryLockout
LAErrorBiometryNotAvailable
LAErrorBiometryNotEnrolled

refer newly add errorcode from doc : developer.apple.com
image

@ben-snaize
Copy link
Author

@nisguptaGit @naoufal @davidgruebl Would be great to have these new errors included as it will help to debug this issue. I'm currently holding off releasing the feature to our Apps as I can't resolve it currently.

@Shinichi52
Copy link

@ben-snaize i resolved my issue after changed to https://github.com/tradle/react-native-local-auth. it's working fine.

@zibs
Copy link
Collaborator

zibs commented Sep 21, 2018

I'm not sure if this still an issue or not, so closing unless otherwise!

@zibs zibs closed this as completed Sep 21, 2018
@tegozen
Copy link

tegozen commented Dec 16, 2020

after a few failed attempts, the iphone prompts you to enter your password. this affects touchid entirely. even when unlocking the phone, he could not determine the fingerprint until I entered the password. I'm not sure if this is your problem, but the symptoms are similar.

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

7 participants