You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/control-flow/functions/utility-actions.md
+77Lines changed: 77 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -187,3 +187,80 @@ Here's an example of adding the date time picker action and displaying the value
187
187
</iframe>
188
188
</div>
189
189
<p></p>
190
+
191
+
192
+
## Biometric Verification
193
+
194
+
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.
195
+
196
+
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.
197
+
198
+
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.
199
+
200
+
<div style={{
201
+
position: 'relative',
202
+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
Go to your project page on FlutterFlow and follow the steps below to define the Action to any widget.
229
+
230
+
1. Select the **Widget** (e.g., Button) on which you want to define the action.
231
+
2. Select **Actions** from the Properties panel (the right menu), and click **Open**. This will open an **Action Flow Editor** in a new popup window.
232
+
3. Click on the **+ Add Action**.
233
+
4. On the right side, search and select the **Biometric Verification** (under *Utilities*) action.
234
+
1. By default, if the biometric verification fails, it opens the on-device credentials 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.
235
+
2. Enter the **Biometric Reason text**. This message is displayed inside the biometric recognition UI.
236
+
3. 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.
237
+
4. To show a success or failure message, **Add Conditional** action by clicking on the + button inside the already added action.
238
+
1. Click on the **UNSET**, select **Action Output**, and select the action output variable name.
239
+
2. Under the **TRUE** section, add an action to [show the snackbar](../../../resources/ui/pages/page-elements.md#snackbar) with a success message.
240
+
3. Similarly, add the failure message under the **FALSE** section.
241
+
242
+
<div style={{
243
+
position: 'relative',
244
+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
0 commit comments