Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window.plugins.touchid.setLocale() #28

Open
qliqdev opened this issue Dec 5, 2017 · 4 comments
Open

window.plugins.touchid.setLocale() #28

qliqdev opened this issue Dec 5, 2017 · 4 comments

Comments

@qliqdev
Copy link

qliqdev commented Dec 5, 2017

setLocale didn't work for me
using FingerprintAuth that is included in plugin
platform: android
ionic: 1.3.1
"name": "cordova-plugin-keychain-touch-id",
"version": "3.2.1",

window.plugins.touchid.isAvailable(function () {
window.plugins.touchid.has('XXXXXX', function () {
    //Touch ID avaialble and Password key available
    window.plugins.touchid.setLocale('ru_RU', function () {
        window.plugins.touchid.verify('XXXXXX', $translate.instant('ATTACH_FINGER_TO_ENTER'), function (password) {
            authorize();
        }, function (err) {
            console.log('canceled');
            AppPopup.toast('ATTENTION', 'BIO_CANCELED_ENTER_PIN');
        });
    }, function (err) {
        console.log('no locale');
    })
    }, function () {
        //Touch ID available but no Password Key available
        AppPopup.toast('ATTENTION', 'ENTER_PIN_TO_REGISTER_TOUCH_ID');
    }); 
},  function (msg) {
//Touch ID not available
});
@sykaeh
Copy link

sykaeh commented Jan 25, 2018

@abbazer Currently only English and Spanish are implemented by this plugin. If you need a different language, then you have to add it. I have added the ones relevant to me (see #30). You would also have to call it with 'ru' only (not 'ru_RU').

@qliqdev
Copy link
Author

qliqdev commented Jan 25, 2018

i've tried both of 'ru' and 'ru_RU', cuz I saw in code some part where locales converts to single 'ru' when entry is 'ru_RU'.

i hope in last update of review locales will work fine. depending on #30

thanks for your answer

@fabrz
Copy link

fabrz commented May 8, 2018

@sjhoeksma I'm experiencing this issue too. Is this plugin still being maintained?

@qliqdev
Copy link
Author

qliqdev commented May 15, 2018

@fabrz I have added Russian Lang, fork in my projects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants