Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] - How to catch event from Try Again! button when using React FaceLivenessDetector component #4765

Closed
2 tasks
ducthang2001 opened this issue Nov 17, 2023 · 3 comments
Labels
feature-request Request a new feature Liveness

Comments

@ducthang2001
Copy link

On which framework/platform would you like to see this feature implemented?

React

Which UI component is this feature-request for?

Liveness

Please describe your feature-request in detail.

I am using @aws-amplify/ui-react-liveness which provide FaceLivenessDetector component. I have tested some testcase and one of these is faceliveness detect fail. When faceliveness check faill for a reason it will toast a Toast Message that includes message and a Try Again button!.

I have read about the onError props and log to the console as well as handle the error exception. But for improve users experience. I want to handle error when user click on the Try Again! button. How can i catch event onClick at the Try Again! button?

  1. Steps to reproduce the issue
  • Create a Faceliveness session
  • Use FaceLivenessDetector component for streaming video
  • Intentionally fail the FaceLiveness. For example ( stream video with multiple face, not bring face close to camera, etc ) just anything that fail the Faceliveness check.
    => After that the Try Again! button will appear, and i want to catch the event of user when click on it!
  1. App logs: any faceliveness fail logs
  2. Amplify library using: I am using React, it's @aws-amplify/ui-react-liveness": "^2.0.9
  3. The Amplify library version: "aws-amplify": "^5.3.11"

Please describe a solution you'd like.

Catch the event when user click on the Try Again! button
385550580_158888497312714_3315213175223921286_n

We love contributors! Is this something you'd be interested in working on?

  • 👋 I may be able to implement this feature request.
  • ⚠️ This feature might incur a breaking change.
@ducthang2001 ducthang2001 added the feature-request Request a new feature label Nov 17, 2023
@github-actions github-actions bot added the pending-triage Issue is pending triage label Nov 17, 2023
@sca1235
Copy link

sca1235 commented Nov 17, 2023

having same issue

@thaddmt thaddmt added Liveness and removed pending-triage Issue is pending triage labels Nov 17, 2023
@thaddmt
Copy link
Contributor

thaddmt commented Nov 17, 2023

@ducthang2001 At this time you will probably need to write your own custom error view component in order to handle the click, there's documentation on how to do so here - https://ui.docs.amplify.aws/react/connected-components/liveness/customization#components

@thaddmt thaddmt closed this as completed Nov 28, 2023
@thaddmt thaddmt reopened this Nov 28, 2023
@github-actions github-actions bot added the pending-triage Issue is pending triage label Nov 28, 2023
@calebpollman calebpollman removed the pending-triage Issue is pending triage label Dec 1, 2023
@calebpollman calebpollman changed the title How to catch event from Try Again! button when using React FaceLivenessDetector component [FR] - How to catch event from Try Again! button when using React FaceLivenessDetector component Dec 1, 2023
@reesscot
Copy link
Contributor

reesscot commented Dec 5, 2023

Closing this out as we have added additional documentation here:
https://ui.docs.amplify.aws/react/connected-components/liveness/customization#error-view-example

@reesscot reesscot closed this as completed Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request a new feature Liveness
Projects
None yet
Development

No branches or pull requests

5 participants