How to handle "Cancel" in TouchID


#1

I just want to move to another page if Cancel is clicked

Is it possible? if possible please share the solution


#2

I catch it in an async / await try block:

try {
                // if touch is available
                const isTouchAvailable = await this.touchId.isAvailable();

            } catch (error) {
                // touch not available or cancelled
           
            }

#3

Thanks for the answer @richardshergold

I got another problem too, can we handle “Enter Password” button which automatically direct’s to mobile pin screen?

I tried “verifyFingerprintWithCustomPasswordFallbackAndEnterPasswordLabel(message, enterPasswordLabel)” this but it only changes text but not handling the fuction of that button.

If am not going to handle these two buttons then using touchID will make bugs.

Please help me out if you the solution.