当用户单击“输入密码”时,如何使用系统内置密码屏幕来验证我的应用程序 [英] How to use system build-in passcode screen to authenticate my App when user clicks Enter Password
问题描述
我正在将TouchID集成到我的应用中,如何使用输入密码选项显示系统内置密码屏幕来验证我的应用。
任何一个请解释如何在目标C中处理案例'LAErrorUserFallback'。
I'm integrating TouchID into my app, How can I use 'Enter passcode' option present system build-in passcode screen to authenticate my app.? Any one please explain how to handle case 'LAErrorUserFallback' in objective C.
推荐答案
你不能这样做。您可以使用该选项显示您自己的密码屏幕。在你的回复块中,你检查NSError对象并关闭回退代码。
You cannot do that. What you can do is use that option to show your own password screen. In your reply block you check the NSError object and switch off the fallback code.
....replyBlock:^(BOOL success, NSError *error) {
if (error)
{
switch (error.code)
case LAErrorUserFallback:
现在,您可以执行应用程序想要针对特定应用而非特定于设备的身份验证执行的任何操作。 (基本上,您可以在Touch ID可用之前做任何事情。)
Now here you can do whatever your app wants to do for app specific, not device specific, authentication. (Basically, you can do whatever you did before you had Touch ID available.)
更新:
参见NicolasMiari的评论,指的是 https://www.secsign。 com / fingerprint-validation-as-an-alternative-to-passcodes / 可能有解决方案。
See NicolasMiari's comment, which refers to https://www.secsign.com/fingerprint-validation-as-an-alternative-to-passcodes/ which may have a solution.
这篇关于当用户单击“输入密码”时,如何使用系统内置密码屏幕来验证我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!