Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic framework 无法在Ionic 4-指纹AIO中设置指纹选项_Ionic Framework_Ionic4_Fingerprint_Face Id - Fatal编程技术网

Ionic framework 无法在Ionic 4-指纹AIO中设置指纹选项

Ionic framework 无法在Ionic 4-指纹AIO中设置指纹选项,ionic-framework,ionic4,fingerprint,face-id,Ionic Framework,Ionic4,Fingerprint,Face Id,我正在尝试在离子4中使用指纹AIO本机功能。我已经按照指南()安装并运行了它,但没有任何选项 如果我像这样保持“show”对象为空:show({}),它可以正常工作,但是如果我尝试添加选项,例如:clientId、clientSecret,。。。我犯了一个错误 我有以下代码: 代码 错误 目前,正在使用以下代码工作: 我做错了什么?为什么我无法添加指纹选项 不带指纹选项的代码正在Iphone 8(指纹、密码)和Iphone X(人脸ID)上运行和测试。我在节点模块中检查了指纹选项中没有的选项 相

我正在尝试在离子4中使用指纹AIO本机功能。我已经按照指南()安装并运行了它,但没有任何选项

如果我像这样保持“show”对象为空:show({}),它可以正常工作,但是如果我尝试添加选项,例如:clientId、clientSecret,。。。我犯了一个错误

我有以下代码:

代码 错误 目前,正在使用以下代码工作: 我做错了什么?为什么我无法添加指纹选项


不带指纹选项的代码正在Iphone 8(指纹、密码)和Iphone X(人脸ID)上运行和测试。

我在节点模块中检查了指纹选项中没有的选项 相反,这是结构

this.faio.show({
标题:“生物特征认证”/(仅限Android)|可选|默认值:“生物特征登录”
字幕:“有史以来最酷的插件”/(仅限Android)|可选|默认值:null
描述:“请验证”//可选|默认值:null
fallbackButtonTitle:'使用备份',//可选|当disableBackup为false时,默认为“使用Pin”。
//当disableBackup为true时,默认为“取消”
disableBackup:true,//可选|默认值:false
})
.then((结果:any)=>console.log(结果))
.catch((错误:any)=>console.log(错误))
this.faio.show({
    clientId: 'Fingerprint-Demo', 
    clientSecret: 'o7aoOMYUbyxaD23oFAnJ' 
    disableBackup:true,  
    localizedFallbackTitle: 'Use Pin', 
    localizedReason: 'Please authenticate'
})
.then((result: any) => console.log(result))
.catch((error: any) => console.log(error));
ERROR in src/app/pages/login/login.page.ts(211,7): error TS2322: Type '{ clientId: string; clientSecret: string; disableBackup: true; localizedFallbackTitle: string; localizedReason: string; }' is not assignable to type 'FingerprintOptions'.
  Object literal may only specify known properties, and 'clientId' does not exist in type 'FingerprintOptions'.
this.faio.show({})
.then((result: any) => console.log(result))
.catch((error: any) => console.log(error));