7
Views
2
Comments
Solved
[Barcode Plugin] Error message shown when tapping the X to close barcode scanner
barcode-plugin
Mobile icon
Forge asset by OutSystems
Application Type
Mobile

Hi,

I am using this component for PWA and I noticed that when you close the scanner using the X:


We see the following error message:



I see this in the plugin:


So I can't even catch the exception and handle it accordingly.


Right now it's not a user friendly message and in my opinion it's not really an error as the user wants to close the scanner.


So the question is: Can we not show an error when we close the scanner? If not, are there plans to allow this in a future update of the component?


Thanks in advance.

Ricardo

2025-01-10 11-40-52
Pedro Gustavo Bilro
Solution

Hey @Ricardo de Freitas, thanks for posting this. At the moment using the ScanCode block, there's no way around that problem. Could you try using the ScanBarcode client action directly instead? That can allow you to handle the error directly.

2019-03-06 15-43-55
Ricardo de Freitas

Thank you Pedro, it worked. I didn't realise that the ScanBarcode client action was public.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.