EddyVerbruggen / cordova-plugin-touch-id

:nail_care: 👱‍♂️ Forget passwords, use a fingerprint scanner!
MIT License
214 stars 72 forks source link

TouchId not working with ionic4 #88

Open amarjitsingh65 opened 4 years ago

amarjitsingh65 commented 4 years ago

ionic4 TouchId and FaceId not working as expected. I have installed. “cordova-plugin-touch-id”: “^3.4.0”, “@ionic-native/touch-id”: “^5.3.0”,

if (this._platform.is(‘ios’)) {

    this.touchId.isAvailable()
        .then(
            res => {
                console.log('TouchID is available!')
                this.touchIdLabel = "TOUCH ID";
            },
            err => {
                console.error('TouchID is not available', err)
                this.touchIdLabel = err;
            }
        );

}

It gives error: “Plugin_not_installed”,

I also tried with other versions:

“@ionic-native/touch-id”: “^5.17.1”, “cordova-plugin-touch-id”: “^3.4.0”,