Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我的应用在屏幕上显示触摸 ID 对话框时收到推送通知,我希望能够取消/关闭它并处理推送。
这是否可能,或者我是否需要存储推送数据,直到用户导致对话框关闭或安排替换本地推送以稍后处理它?
目前,LAContext'sinvalidate()方法的文档指出,对该函数的调用会导致任何当前正在进行的身份验证通过systemCancel错误代码失败。
LAContext
invalidate()
systemCancel
因此,当您收到通知时,您可以使本地身份验证上下文无效。请注意,一旦失效,上下文可能不会被重用。