在IOS上构建时,指纹AIO无法正常工作

时间:2019-06-21 06:01:22

标签: typescript ionic-framework ionic3 fingerprint

我在离子应用程序中使用指纹AIO。

,代码库如下所示

import { FingerprintAIO } from '@ionic-native/fingerprint-aio';

constructor(private faio: FingerprintAIO) { }

...

this.faio.show({
    clientId: 'Fingerprint-Demo', //Android: Used for encryption. iOS: used for dialogue if no `localizedReason` is given.
    clientSecret: 'o7aoOMYUbyxaD23oFAnJ' //Necessary for Android encrpytion of keys. Use random secret key.
    disableBackup:true,  //Only for Android(optional)
    localizedFallbackTitle: 'Use Pin', //Only for iOS
    localizedReason: 'Please authenticate' //Only for iOS
})
.then((result: any) => console.log(result))
.catch((error: any) => console.log(error));

我在android手机中构建的设备正常工作时,会弹出指纹验证窗口。

但是如果我在IOS中构建相同的代码,则不会弹出任何窗口来验证指纹

插件版本:

<plugin name="cordova-plugin-fingerprint-aio" spec="^1.7.0" />

在package.json中

"dependencies" : {
"@ionic-native/fingerprint-aio": "^4.11.0",
}

我不知道这是什么问题。任何帮助表示赞赏。

0 个答案:

没有答案