plugins
plugins copied to clipboard
[@nativescript/biometrics] - Android: ".pinFallBack: false" returns javax exception
General Info:
Android minSdk: 26 Android Emulator Sdk: 33 Plugin Version in package.json: ^1.3.1
JS Code in main-page.js
const biometricAuthPlugin = require('@nativescript/biometrics');
const biometrics = new biometricAuthPlugin.BiometricAuth();
biometrics.verifyBiometric({
title: 'Speichern der Anmeldedaten',
message: 'Anmeldedaten werden gespeichert bzw. überschrieben und in Zukunft zur schnelleren Anmeldung automatisch ausgefüllt.',
fallbackMessage: 'Bitte PIN eingeben',
pinFallback: false,
}).then(function (result) {
if (result.code === 0 || result.message === "All OK") {
AppSettings.setString("username", eventData.username);
AppSettings.setString("password", eventData.password);
} else {
console.warn("Sonderfall Authentifizierung (erfolgreich aber nicht Code 0):", result);
}
}).catch(function (error) {
if (error.code === 50 || error.message === "Authentication canceled") {
console.log("Authentifizierung durch Nutzer abgebrochen");
} else {
console.warn("Fehlerfall bei der Authentifizierung:", error);
}
});
This is inside a function which responds to an Event in a WebView. eventData
is provided by this function. This function is not the source of the problem, it always worked.
Steps:
- Start Auth. process
- Android Window Pops up
- Touch Fingerprint Sensor, Android confirms Fingerprint
-
Error in onAuthenticationSucceeded: Error: javax.crypto.IllegalBlockSizeException
Might this be a problem of my installed Java-Version? I checked that the usage of ü, ö, ä is not the Problem (Why ever this should be a problem, UTF-8 supports umlauts/mutations after all)