更新时间:2021-10-17 02:03:48
总结下面的讨论,暂时无法在用户没有设置的情况下判断设备是否真的支持TouchID他们设备上的密码.
In conclusion of the discussion below, for the time being it is not possible to determine whether a device actually supports TouchID or not when the user hasn't set up passcode on their device.
我已经在 Apple 漏洞报告器上报告了这个 TouchID 缺陷.那些想要关注这个问题的人可以在 Open Radar 上看到它:http://www.openradar.me/20342024
I have reported this TouchID flaw on the Apple bug reporter. Those who want to follow the issue can see it on Open Radar here: http://www.openradar.me/20342024
感谢@rckoenes 的输入:)
Thanks @rckoenes for the input :)
编辑
事实证明有人已经报告了类似的问题 (#18364575).以下是 Apple 对此问题的回复:
Turns out that someone has reported a similar issue already (#18364575). Here is Apple's reply regarding the issue:
工程已根据以下信息确定此问题的行为符合预期:
如果未设置密码,您将无法检测到 Touch ID 的存在.设置密码后,canEvaluatePolicy 最终将返回 LAErrorTouchIDNotAvailable 或 LAErrorTouchIdNotEnrolled,您将能够检测到 Touch ID 的存在/状态.
如果用户在带有 Touch ID 的手机上禁用了密码,他们知道他们将无法使用 Touch ID,因此应用程序不需要检测 Touch ID 的存在或推广基于 Touch ID 的功能.
所以..... Apple 的最终答案是否.:(
So..... the final answer from Apple is No. :(
注意:来自报告此人的类似 *** 问题 -> iOS8 检查如果设备有触控 ID(想知道为什么我之前没有找到这个问题,尽管我进行了广泛的搜索......)
Note: similar *** question from the person who reported this -> iOS8 check if device has Touch ID (wonder why I didn't find this question before despite my extensive searching...)