Skip to content

Commit 600e242

Browse files
committed
Added biometric verification action
1 parent 0d0a8fe commit 600e242

File tree

2 files changed

+78
-1
lines changed

2 files changed

+78
-1
lines changed

docs/resources/control-flow/functions/utility-actions.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,80 @@ Here's an example of adding the date time picker action and displaying the value
187187
</iframe>
188188
</div>
189189
<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
203+
height: 0,
204+
width: '100%'}}>
205+
<iframe
206+
src="https://demo.arcade.software/nzMmo0lGgvZ4LybXBSy2?embed&show_copy_link=true"
207+
title=""
208+
style={{
209+
position: 'absolute',
210+
top: 0,
211+
left: 0,
212+
width: '100%',
213+
height: '100%',
214+
colorScheme: 'light'
215+
}}
216+
frameborder="0"
217+
loading="lazy"
218+
webkitAllowFullScreen
219+
mozAllowFullScreen
220+
allowFullScreen
221+
allow="clipboard-write">
222+
</iframe>
223+
</div>
224+
<p></p>
225+
226+
### Adding Biometric Verification [Action]
227+
228+
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
245+
height: 0,
246+
width: '100%'}}>
247+
<iframe
248+
src="https://demo.arcade.software/87E8n4OAqZWl6pVqMeyp?embed&show_copy_link=true"
249+
title=""
250+
style={{
251+
position: 'absolute',
252+
top: 0,
253+
left: 0,
254+
width: '100%',
255+
height: '100%',
256+
colorScheme: 'light'
257+
}}
258+
frameborder="0"
259+
loading="lazy"
260+
webkitAllowFullScreen
261+
mozAllowFullScreen
262+
allowFullScreen
263+
allow="clipboard-write">
264+
</iframe>
265+
</div>
266+
<p></p>

firebase.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@
11801180
},
11811181
{
11821182
"source": "/actions/actions/utilities/biometric-verification",
1183-
"destination": "/",
1183+
"destination": "/resources/functions/utility-actions#biometric-verification",
11841184
"type": 301
11851185
},
11861186
{

0 commit comments

Comments
 (0)