问题标签 [touch-id]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
4764 浏览

ios - 如何将 Touch ID 与登录凭据相关联?

我能够成功验证用户 Touch ID。但是,一旦触摸 ID 身份验证成功,检索用户登录名和密码以执行登录的最安全方法是什么?

对于 iTunes 连接应用程序,一旦 touch ID 登录成功,它似乎会在本地检索密码并将其填充到密码 UITextField 中。我猜它正在使用钥匙串。

但是,将用户凭据存储在 iPhone 本身上是否安全?还有其他方法吗?

在此处输入图像描述

0 投票
1 回答
723 浏览

ios - swift - touchID 需要很长时间才能加载

我正在努力将 touchID 集成到我的应用程序中。这个过程相当简单,但即使只是使用我的虚拟数据,它也需要大约 5 秒钟才能验证我的指纹,然后才能执行它的任务。

这是我的代码:

即使使用虚拟数据,它也需要很长时间。

当我正常登录时,通过在我的输入字段中输入电子邮件和密码,signIn() 函数会立即运行。

看看这是否有问题。我尝试用两行简单地将我带到正确的视图控制器来替换它。但是在验证我的指纹后仍然需要几秒钟。

我知道这不是电话,也不是 touchID。因为它会立即运行我的 println("successfull signin with touchID")。之后是什么,由于某种原因需要几秒钟才能运行?

任何帮助解释这一点将不胜感激!

0 投票
0 回答
634 浏览

ios - -1004 error.code 来自 LAContext 的 evaluatePolicy 方法

我在我的应用程序上运行了 Touch ID,现在它停止工作了大约十几次。我最终深入挖掘,发现回复块中的error.code是-1004。

这是在真实设备上,而不是模拟器(显然),但 -1004 不是任何记录的值:

这个问题在我的设备上自行解决,我没有采取任何行动,但这令人费解。-1004 error.code 是什么意思?

0 投票
8 回答
19918 浏览

ios - Determine if an iOS device supports TouchID without setting passcode

I'm currently developing an iOS app that enables users to log in to the app using TouchID, but firstly they must set up a password inside the app first. Problem is, to show the setup password option to enable the TouchID login, I need to detect if the iOS device supports TouchID.

Using the LAContext and canEvaluatePolicy (like the answers in here If Device Supports Touch ID), I am able to determine whether the current device supports TouchID if the user has set up passcode on their iOS device. Here is a my code snippet (I'm using Xamarin, so it's in C#):

If the user has not set up the device passcode, the authError will just return "PasscodeNotSet" error regardless of whether the device actually supports TouchID or not.

If the user's device supports TouchID, I want to always show the TouchID option in my app regardless of whether the user has set up passcode on their device (I will just warn the user to setup passcode on their device first). Vice versa, if the user's device doesn't support TouchID, I obviously don't want to show the TouchID option in my app.

So my question is, is there a nice way to consistently determine whether an iOS device supports TouchID regardless of whether the user has set up passcode on their device?

The only workaround I can think of is to determine the architecture of the device (which is answered in Determine if iOS device is 32- or 64-bit), as TouchID is only supported on devices with 64-bit architecture. However, I'm looking if there's any nicer way to do this.

0 投票
1 回答
364 浏览

ios - Apple是否允许自定义localizedFallbackTitle以进行本地身份验证?

我可以更改 LAContext 的本地化FallbackTitle 吗?我之所以问,是因为此属性存在于公共头文件中,但未在LAContext 的文档中列出。如果我更改此值,Apple 会拒绝我的应用程序吗?

0 投票
1 回答
183 浏览

ios - 如何在没有 iPhone 5s 设备的情况下测试 Touch ID 功能

我想在应用程序中实现 touch id 功能,为此我编写了代码:

我没有支持 touch id 功能的设备,所以我可以在哪里测试它以查看其功能是否正常工作。

任何帮助,将不胜感激。谢谢。

0 投票
1 回答
1712 浏览

ios - 仅使用密码而不是 TouchID 的设备上的本地身份验证

假设我的应用程序包含敏感数据,我想确保用户在访问之前通过密码在本地进行身份验证。我在 iOS 8 中使用 Xamarin TouchID 身份验证,如此Xamarin intro to touch ID 文章中所示。我在运行 iOS 7 的旧设备上对此进行了测试,但显然无法正常工作。所以我的问题是,如何使用 iOS 7 设备进行密码验证?这仅适用于 iOS 8 吗?


我注意到 iOS 应用 Mint 使用自定义密码。如何实现连接到 TouchID 弹出窗口中“输入密码”按钮的自定义密码?如果我知道该怎么做,我可以实现自己的自定义密码,以便它适用于 iOS 7...

在此处输入图像描述 在此处输入图像描述

0 投票
1 回答
3175 浏览

ios - 设置 TouchID“输入密码”后备以开始编辑 UITextField

我设置了 touchID 并在我的应用程序中正常工作。

但是我想更改“输入密码”的功能。

创建身份验证时,我遵循以下教程: http: //www.appcoda.com/touch-id-api-ios8/

但是,他们为“输入密码”选项使用了 alertView。

我想关闭 touchID alertview 并使我的 passwordTextField 成为 firstResponder。

我自然尝试过:

但这会导致错误:

这是我的身份验证功能:

它确实打印出来

所以我知道它调用了正确的 .case

任何帮助它选择我UITextField将不胜感激!

0 投票
3 回答
5584 浏览

ios - 如何检查 TouchID 是否启用

有什么方法可以检查我的应用程序是否启用了 TouchID,

如何检查我的应用程序是否启用了 TouchID,

例如 :

DropBox 能够启用图形打印传感器启用。现在有什么方法可以检查我的应用程序是否基于 touchid 启用显示 TouchID 屏幕。

0 投票
1 回答
2140 浏览

ios - ios8.3 中不支持 LAContext 中的自定义用户后备按钮

我通过设置localizedFallbackTitle为“使用密码”自定义了后备按钮。有效。但是在我将 iPhone 更新到 iOS 8.3 后,后备按钮在 TouchID 视图上消失了。

这是 API 更新还是 iOS 8.3 的错误?

如何解决?