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

Too many tries should be a recoverable error #92

Open
ndori opened this issue Apr 4, 2018 · 1 comment
Open

Too many tries should be a recoverable error #92

ndori opened this issue Apr 4, 2018 · 1 comment
Labels

Comments

@ndori
Copy link

ndori commented Apr 4, 2018

com.mtramin.rxfingerprint.data.FingerprintAuthenticationException: Too many attempts. Try again later.

in this case onError is called which will end the stream, however, this is a recoverable error, all you need to do it try again later...

@Mauin
Copy link
Owner

Mauin commented Apr 5, 2018

Too many tries result in the Fingerprint API returning an error callback and locking the fingerprint sensor. It is not possible to easily recover or know the timeout that the fingerprint sensor will be in lockdown. This is why this case is translated to an error. The user should actively prompt the app to try again to enable the fingerprint sensor.

I feel like adding internal retry logic to RxFingerprint would defeat the purpose of this error as it is there for security reasons.

@Mauin Mauin added the question label Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants