Open sykaeh opened 6 years ago
@sjhoeksma I need theses changes too. Can you review that soon?
Doesn't work for me plugin ver. 3.2.1
document.addEventListener("deviceready",
function () {
if (window.plugins.touchid) {
window.plugins.touchid.isAvailable(function () {
window.plugins.touchid.setLocale('ru', function () {
window.plugins.touchid.has('PinKey', function () {
//Touch ID avaialble and Password key available
window.plugins.touchid.verify('PinKey', $translate.instant('ATTACH_FINGER_TO_ENTER'), function (password) {
$scope.pins = password.split("");
authorize();
}, function (err) {
AppStorage.set('useBiometryToEnter', false);
});
}, function () {
//Touch ID available but no Password Key available
AppPopup.toast('ATTENTION', 'ENTER_PIN_TO_REGISTER_TOUCH_ID');
});
}, function (err) {
console.log(err);
});
}, function (msg) {
//Touch ID not available
});
}
});`
Updated and added new languages.