Comments (7)
Okey, I've got something. Just before authenticating try this
if (Platform.OS === 'android' && Platform.Version <= 23 ) {
// not performing any TouchID actions
}
from react-native-touch-id.
Fixed in #96
from react-native-touch-id.
Any ideas? Having the same problem
from react-native-touch-id.
I think, in
FingerprintAuthModule.java
this:
public void isSupported(Callback reactErrorCallback, Callback reactSuccessCallback) {
keyguardManager = (KeyguardManager) getCurrentActivity().getSystemService(Context.KEYGUARD_SERVICE);
fingerprintManager = (FingerprintManager) getCurrentActivity().getSystemService(Context.FINGERPRINT_SERVICE);
if(!isFingerprintAuthAvailable()) {
reactErrorCallback.invoke("Not supported.");
} else {
reactSuccessCallback.invoke("Is supported.");
}
return ;
}
should become something like:
public void isSupported(Callback reactErrorCallback, Callback reactSuccessCallback) {
if(!isFingerprintAuthAvailable()) {
reactErrorCallback.invoke("Not supported.");
} else {
keyguardManager = (KeyguardManager) getCurrentActivity().getSystemService(Context.KEYGUARD_SERVICE);
fingerprintManager = (FingerprintManager) getCurrentActivity().getSystemService(Context.FINGERPRINT_SERVICE);
reactSuccessCallback.invoke("Is supported.");
}
return ;
}
Correct me if i'm wrong...
from react-native-touch-id.
Hi @gazaret , are you sure your solution work? Because the solution i proposed is unstable...
from react-native-touch-id.
Hi @marcorm , yes it was unstable on api 23+.
Now fixed this.
Tested on android 4.4 and 7.0. It works.
from react-native-touch-id.
We now have some handling for this in 4.0.3 - please give it a shot and let us know by opening a new issue if the problem persists.
from react-native-touch-id.
Related Issues (20)
- Is there a way to save the Touch ID string to Keystore?
- lost text,messages
- how to check touch id inside screen HOT 1
- Is it valid for expo? HOT 1
- TypeError: Cannot read property 'isSupported' of undefined HOT 5
- Do not use this library in sensitive applications HOT 2
- can't seem to get the error of unmatched finger print
- Android Face ID never working. HOT 5
- Hide dialog window on android if native dialog is opening
- Compile time error in react-native-web-app HOT 1
- Is this package still going to be maintained HOT 5
- Increase the number of authentication attempts to 4 or 5 times instead of 2 (IOS)
- passcodeFallback related issue HOT 2
- How To Detecting FaceID/TouchID Were Have Changed
- IS this package being maintained now? HOT 2
- How to get the number of fingerprint registrations?
- Error : LAErrorAuthenticationFailed Authentication could not start because Touch ID has no enrolled fingers.
- Reac-native-touch-id doesn't recognize faceid in android 10 and above. HOT 2
- Support new React Native new architecture (TurboModules/Fabric) HOT 1
- How can i change touch id modal UI HOT 1
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 react-native-touch-id.