Comments (4)
The docs (https://developer.apple.com/documentation/localauthentication/lapolicy/lapolicydeviceownerauthenticationwithbiometrics?language=objc) says 'To let the system handle the fallback option by asking for the device passcode (in iOS or watchOS) or the userβs password (in macOS), use the LAPolicyDeviceOwnerAuthentication policy instead.'
I will try changing LAPolicyDeviceOwnerAuthenticationWithBiometrics to LAPolicyDeviceOwnerAuthentication in TouchID.m. I will report back another day.
from cordova-plugin-touch-id.
I am also facing the same issue. Its working fine in iPhone6 OS version 10 but not in iPhone6+ OS version 12
from cordova-plugin-touch-id.
Thanks for adding information. I can only test iOS 11+ since my Capacitor is configured like that now.
from cordova-plugin-touch-id.
It had something to do with LAPolicyDeviceOwnerAuthentication but not by simply replacing the policies in the TouchID.m file.
This repo fixes the issues described above: https://github.com/didux-io/cordova-plugin-touch-id. I have also requested a pull for this repo.
Package on npm: https://www.npmjs.com/package/@didux-io/cordova-plugin-touch-id
Behavior now:
- User will be prompted for finger print if available
- User will be prompted for passcode or fingerprint after one failed finger print attempt
- User will be prompted for only the passcode if the fingerprint is disabled or if the fingerprint has been disabled by too many misuses.
I highly recommend using this package aswell: https://ionicframework.com/docs/native/pin-check with https://ionicframework.com/docs/native/open-native-settings
That library will check if the user has no passcode and provides you ways to navigate the user to set one, example code to use with that library:
import { PinCheck } from '@ionic-native/pin-check/ngx';
import { TouchID } from '@ionic-native/touch-id/ngx';
import { Platform } from '@ionic/angular';
.....
pinSetup = true;
constructor(
private platform: Platform,
private pinCheck: PinCheck,
private touchId: TouchID
) {
}
openSecuritySettings() {
if (this.platform.is('android')) {
this.openNativeSettings.open('security');
} else if (this.platform.is('ios')) {
this.openNativeSettings.open('touch');
}
}
checkLockScreenEnabled() {
this.pinCheck.isPinSetup().then(
() => {
this.pinSetup = true;
}, () => {
this.pinSetup = false;
}
);
}
.....
from cordova-plugin-touch-id.
Related Issues (20)
- Touch ID Plugin having Issue with biometrics HOT 1
- BSF Cordova Ecosystem Crowdfunding Plan
- Add required Privacy Manifest file for iOS
- Cordova 9 not working HOT 2
- TouchID dialog is not displayed when updating to iOS 13.1. HOT 4
- Add typing interface (index.d.ts) in `types` folder
- Question: Flow for TouchId
- TouchId not working with ionic4
- Passcode appear only after one failed fingerprint attempt
- The method verifyFingerprint does not work
- The operation couldn't be completed(OSStatus error -25308) HOT 1
- iPhoneX FaceID prompt permission HOT 1
- FaceID dialog does not show up in rare cases HOT 1
- Questions about "resultWithStatus:CDVCommandStatus_***"
- Error [NSNull dataUsingEncoding:]: unrecognized selector sent to instance
- iOS Landscape orientation HOT 1
- feature - dismiss function
- Plugin not installed ios issue HOT 1
- .
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-touch-id.