Can I programmatically reject the Touch ID LAContext dialog?

In case my application receives a push notification when the screen of the touch identifier is displayed on the screen, I would like to be able to cancel / reject it and process the click.

Is this possible, or do I need to either save the push data until the user starts a dialog to reject or schedule a replacement for the local click in order to process it later?

+7
ios touch-id
source share
1 answer

Currently, the documentation for the LAContext invalidate() method indicates that calling this function will fail any current authentication in the process using the systemCancel error systemCancel .

Therefore, when you receive a notification, you can invalidate the local authentication context. Note that a once invalid context cannot be reused.

+5
source share

All Articles