Comments (15)
Hm, I don't have either of the two phones you listed, and I'm not able to reproduce that on any of the devices I have available. Let me know if you find out any more information.
from reprint.
This issue seems related: http://stackoverflow.com/questions/36031092/fingerprintmanager-ishardwaredetected-throwing-java-lang-securityexception
On those devices I mentioned, it seems like there's an exception both when trying to detect fingerprint HW and fingerprint enrolment so the methods return false. Maybe you should add some logging to your library (for example, when checking whether the hardware is present on not) so it's easier to detect the root cause of an issue, like this one.
from reprint.
I certainly could add the ability to register a logger with Reprint. What kind of logging would you like to see?
from reprint.
Basically just printing exception stack trace instead of simply catching and ignoring it.
One of my users downgraded to an older version of my app (which is using an older version of your library) and the issue vanished so there's definitely something wrong with your library it seems. I'm interested in finding out what it is, but the logcat doesn't contain any useful information and logging could be of some help.
from reprint.
BTW here's my app if you want to test it: www.github.com/theblixguy/DroidID
from reprint.
I am also facing the same problem. Some of my users are complaining that suddenly they are seeing "No fingerprint hardware detected" message, but it used to work previously. I have changed nothing in code that could make this happen. Many users are unable to login to the app just because of this weird problem. Any ideas on why this can happen?
from reprint.
I released version 2.9.0
, which adds an optional logging interface that you can use to get more information about unexpected errors by passing an instance to Reprint.initialize
.
You can see an example of its usage in the sample app here: https://github.com/ajalt/reprint/blob/master/sample/src/main/java/com/github/ajalt/reprint/App.java#L12
The sample just writes messages to logcat, but you'll of course want to send the messages to your crash reporter of choice.
Let me know if you find out anything, and thanks for your help so far.
from reprint.
Let me give it a try and get back to you when some user faced the issue again and I get the logs.
from reprint.
Given that the symptoms you're reporting match this issue:
https://code.google.com/p/android/issues/detail?id=231939
I'm going to say that this is a google bug, and not a problem with Reprint itself. I'll leave this issue open until that android issue is resolved. Let me know if you think that there is a different problem.
from reprint.
Ok, so I think I implemented a workaround for the appcompat bug in 6d51ff8.
I stopped using appcompat almost entirely, since we're already wrapping all the methods. Try updating to Reprint 2.9.1 and let me know if there are still any issues.
from reprint.
Thanks for the update. I think the issue is fixed. Let me push an update and check with some of my users who had reported a problem.
from reprint.
Just a heads up: 2.9.1 introduced a regression that could cause a crash on KitKat and Lollipop devices. You should upgrade to 2.9.2 as soon as possible. Sorry about that.
from reprint.
Thanks for the update. I was just going to push an update to my app and you have told me at the right time. 👍
Btw, was curious to know what went wrong actually. Initially, everything was working fine all devices. Then I updated from 2.8.0 to 2.8.3 and some of my users started reporting that the fingerprint scanner was not detecting.
So, if the issue is in the FingerprintManagerCompat then how was everything working well before 2.8.0?
from reprint.
The bug was introduced in appcompat 25.1.0, which I upgraded to in Reprint version 2.8.0. It would report that there was no fingerprint hardware on some devices that do in fact have it. The bug still exists in the latest appcompat version, so instead of requiring users to use an old version of appcompat, I just stopped using FingerprintManagerCompat and implemented that functionality myself.
from reprint.
I see. Thanks for your efforts.
from reprint.
Related Issues (20)
- Working only after resuming from standby HOT 9
- No support fingerprint HOT 4
- Restart fingerprint authentication onsuccess HOT 7
- CryptoObject HOT 7
- IllegalStateException in MarshmallowReprintModule.java HOT 8
- Create a method that detects fingerprint changes HOT 5
- NO_HARDWARE with Galaxy Note 4
- Samsung module HOT 1
- spass startIdentify or startIdentifyWithDialog HOT 1
- AGP 3.2.0-alpha18 Error HOT 2
- Use with Gradle 3 "implementation" (instead of compile) HOT 5
- its not working in service but in activity its working fine HOT 4
- BiometricPRompt support and Spass version 1.2.6 HOT 14
- NoClassDefFoundError CancellationSignal HOT 3
- Failed to transform file 'reprint_spass-3.2.1.aar' HOT 1
- Also Use USE_BIOMETRIC Permission HOT 7
- Face authentication HOT 9
- Listeners should be set to null after calling onFailure or onSuccess to avoid memory leak HOT 3
- onFailure immediately called on some devices HOT 3
- Fatal Exception: android.content.res.Resources$NotFoundException 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 reprint.