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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With