Touch ID
Scan the fingerprint of a user with the TouchID sensor.
Requires Cordova plugin: cordova-plugin-touch-id. For more info, please see the
TouchID plugin docs.
Cordovaの問題で困っていますか?
本格的なプロジェクトを構築している場合、トラブルシューティングに時間を費やす余裕はありません。Ionicのエキスパートが、保守、サポート、統合に関する公式サポートを提供しています。
インストール
Ionic Native Enterprise はIonic Teamが完全にサポートしメンテナンスしているプラグインを利用できます。 詳しくみる か、エンタープライズプラグインに興味があれば 連絡ください
サポートしているプラットフォーム
- iOS
利用方法
React
Angular
import { TouchID } from '@ionic-native/touch-id/ngx';
constructor(private touchId: TouchID) { }
...
this.touchId.isAvailable()
.then(
res => console.log('TouchID is available!'),
err => console.error('TouchID is not available', err)
);
this.touchId.verifyFingerprint('Scan your fingerprint please')
.then(
res => console.log('Ok', res),
err => console.error('Error', err)
); Error Codes
The plugin will reject for various reasons. Your app will most likely need to respond to the cases differently.
Here is a list of some of the error codes:
-1- Fingerprint scan failed more than 3 times-2or-128- User tapped the 'Cancel' button-3- User tapped the 'Enter Passcode' or 'Enter Password' button-4- The scan was cancelled by the system (Home button for example)-6- TouchID is not Available-8- TouchID is locked out from too many tries

