Search code examples
codenameone

Call Fingerprint.scanFingerprint but fingerprint dialog doesn't show up when it is called again?


My app calls scanfingerprint and shows fingerprint dialog successfully. I scan my fingerprint and output "Scan successfully".

Fingerprint.scanFingerprint(ul.localStr("!fingerprint"), value -> {
  System.out.pringln("Scan successfull!");
}, (sender, err, errorCode, errorMessage) -> {
  System.out.pringln("Scan Failed!");
});

But when I call scanFinferpring again in the same process, it doesn't show a fingerprint dialog and outputs "Scan successful!" directly.

How to show the fingerpring dialog again if I want my user to log in again with fingerpring?


Solution

  • This isn't currently implemented but I filed an issue. It should be relatively trivial to add as it requires adding an additional native call to invalidate which would do nothing on most platforms but map to this on iOS.