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

android: handle onAuthenticationFailed #283

Merged
merged 1 commit into from
Oct 24, 2020
Merged

android: handle onAuthenticationFailed #283

merged 1 commit into from
Oct 24, 2020

Conversation

NiklasMerz
Copy link
Owner

The onAuthenticationFailed method was not implemented to do something. This seems to be no problem on many devices since the biometric prompt allows a retry and just calls onAuthenticationError after too many failed attempts. This is the case on the emulator for example.

OnePlus chose to implement this differently (on the 6T at least) for some reason. The biometric prompt does not have a UI and after a failed attempt seems to be stuck until you press cancel. This fixes that by implementing the method and calling the error callback back to Cordova.

Closes #247

@NiklasMerz NiklasMerz merged commit ae4748f into master Oct 24, 2020
@NiklasMerz NiklasMerz deleted the authfailed branch October 24, 2020 14:59
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

Successfully merging this pull request may close these issues.

onAuthenticationFailed should return plugin error
1 participant