Links

Biometric Verification

Most modern devices come with biometric sensors to strengthen the device's security. Using this action, you can leverage on-device authentication such as fingerprint or face recognition to protect your app's privacy.
When this action triggers, it checks for the enrolled biometric. If it finds any, it asks users to verify their identity. If the biometric authentication fails, it opens up the screen lock option (e.g., Pattern, PIN, Password, Swipe, etc.) as a fallback method to authenticate users.
A common use case of this action is to allow only the intended user to open an app that involves financial or confidential information, such as an online payment app, stock trading app, or online storage app.
Biometric Verification
​

Adding Biometric Verification action

Go to your project page on FlutterFlow and follow the steps below to define the Action to any widget.
  • Select the Widget (e.g., Button) on which you want to define the action.
  • Select Actions from the Properties panel (the right menu), and click Open. This will open an Action flow Editor in a new popup window.
  • Click on the + Add Action.
  • On the right side, search and select the Biometric Verification (under Backend/Database) action.
    • By default, if the biometric verification fails, it opens the on-device credential such as Pattern and PIN. This helps in a case where the biometric sensor can't recognize a valid fingerprint or face. However, you can disable this behavior and only allow biometric verification. To do so, turn on the Allow biometric only toggle.
    • Enter the Biometric Reason text. This message is displayed inside the biometric recognition UI.
    • Provide the Action Output Variable Name. The status of biometric verification, True (pass) or False(fail), is stored in this variable. You can use this variable to decide the following action. For example, showing a success or failure message.
    • To show a success or failure message, Add Conditional action by clicking on the + button inside the already added action.
      • Click on the UNSET, select Action Output, and select the action output variable name.
      • Under the TRUE section, add an action to show the snackbar with a success message.
      • Similarly, add the failure message under the FALSE section.
Adding Biometric Verification action