Comments (4)
published v0.0.13 to address this issue.
Plugin now returns error "Too many attempts. Try again later."
if disableBackup
is set to true
.
Also added parameter maxAttempts
to set number of failed attempts to fewer than 5 attempts.
from cordova-plugin-android-fingerprint-auth.
I don't know if this is consistent across all device manufacturers, but the max number of attempts is 5 failed attempts. When this happens an error is thrown and onError() gets called. From there I am triggering the authentication screen regardless of the disableBackup parameter.
I could modify this to check the disableBackup parameter and if it is disabled I could fail back to the calling application.
There is also an onAuthenticationFailed() method in the FingerprintUiHelper class. I could create a parameter to set the number of attempts to less than 5 and track the failed attempts in the onAuthenticationFailed() method. I could then fail over to the authentication screen or back to the application depending on the disableBackup parameter.
How many failed attempts were you wanting to allow?
from cordova-plugin-android-fingerprint-auth.
Checking disableBackup in onError() would definitely work.
Also adding another parameter along the lines of numAttempts could be useful.
5 attempts works fine for me. Mostly, being able to handle what happens in my application when onError() is called and disableBackup is true would be useful. (e.g. canceling the dialog, going to a different page, logging out a user, etc.)
Thank you for your response and your time!
from cordova-plugin-android-fingerprint-auth.
I just tested that out and it works great.
Thanks!
from cordova-plugin-android-fingerprint-auth.
Related Issues (20)
- Fingerprint popup box out of place on Samsung Galaxy S10+
- Gui translations are not applied. English is only language. HOT 1
- android.content.res.Resources$NotFoundException HOT 4
- FingerprintAuth is not defined HOT 1
- android.content.res.Resources$NotFoundException: HOT 1
- FaceID on new mobile devices HOT 1
- isAvailableSuccess response, what das it means? HOT 3
- Fatal Exception: java.lang.IllegalStateException: IV has already been used. Reusing IV in encryption mode violates security best practices.
- Multi-access HOT 3
- Deprecated FingerprintManager in API level 28 HOT 6
- BAD_PADDING_EXCEPTION after reinstall HOT 3
- A question about multiple users HOT 3
- Attempt to invoke virtual method HOT 2
- Cannot dismiss Fingerprint dialog HOT 1
- [IONIC] "Uncaught TypeError: object is not a function"
- Uses encryption mode CBC with PKCS7 padding
- setUserAuthenticationRequired true to false update not supporting Backup flow HOT 1
- Add support for newer android sdk's (starting from sdk 28).
- 请问encryptConfig中的clientId如何获取,可否提供操作步骤?
- BSF Cordova Ecosystem Crowdfunding Plan
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-android-fingerprint-auth.