Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to programmatically dismiss the Touch ID LAContext dialog?

Tags:

ios

touch-id

In the event that my app receives a push notification while the touch ID dialog is on screen, I'd like to be able to cancel/dismiss it and handle the push.

Is this possible, or do I need to either store the push data until the user causes the dialog to dismiss or schedule a replacement local push to handle it later?

like image 802
Hayden Gomes Avatar asked Apr 30 '15 00:04

Hayden Gomes


1 Answers

Currently, the documentation of LAContext's invalidate() method states that a call to this function causes any currently in-progress authentication to fail via the systemCancel error code.

So when you get a notification, you can invalidate your local authentication context. Note that once invalidated, a context may not be reused.

like image 186
Matthew Seaman Avatar answered Sep 28 '22 15:09

Matthew Seaman