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

Barcode Scanner Overlay is not hidden when permission is denied #54

Open
rachitbhasin opened this issue Jan 8, 2021 · 3 comments
Open

Comments

@rachitbhasin
Copy link

Description: When using the BarcodeScannerLivestreamOverlayComponent and camera access is blocked the overlay is not hidden or no event is provided to handle the "ERROR Error: Uncaught (in promise): NotAllowedError: Permission denied".

Steps to reproduce:

  1. Navigate to barcode scanner with overlay demo page (link)
  2. Click "Scan codebar with overlay window" button.
  3. When prompted to grant permission for camera access, click "Block".

Actual result:

  1. Camera does not open (as expected), but the overlay does not go away (not desired).
  2. Error visible in developer console "ERROR Error: Uncaught (in promise): NotAllowedError: Permission denied"

Expected result:

  1. Either overlay should be hidden or an event should be provided to handle the error.
@ceszgdav
Copy link

ceszgdav commented Jun 2, 2021

Where is the docs to use the scanner with overlay?

@CrisMyroniuk
Copy link

CrisMyroniuk commented Jan 10, 2024

you solved ?

@rachitbhasin
Copy link
Author

rachitbhasin commented Jan 11, 2024

Tested on Chrome

  1. Open the link in OP (link)

  2. Click "Scan codebar with overlay window" button.

  3. Click "Block" when requested for Camera permission.

  4. Notice Overlay stays and the page is unusable until refreshed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants