78
Views
8
Comments
Solved
[Barcode Plugin] Error when closing (Pushing X) the BarCode scan functionality.
barcode-plugin
Mobile icon
Forge asset by OutSystems
Application Type
Mobile
Service Studio Version
11.53.43 (Build 62091)

Hi all,

I'm facing a issue with BarCode scan plugin after I try to close the scan.

Steps:

1. Click on the bar code scan to open the camera and scan functionality.

2. Click on the x icon to close the scan without  scanning anything.


Error message in IOS devices

Error message in Android devices


Anyone with that same issue?

Thanks in advance

Alan Santos

2020-07-28 18-05-12
MMS
Solution

Hi Alan,

Have you tried customizing the message when you click on the "X"?

I did it this way and it works for me.

Best regards

Miguel Silva

Cancel barcode search.png
Screenshot_2023-08-03-11-00-19-753_com.outsystemscloud.personalpppifyly.TrueMarket.jpg
UserImage.jpg
Hector Gordin

Hello Alan,

We have conducted tests and, unfortunately, we are unable to reproduce the issue you've reported. Could you please confirm if you are using the latest version of the plugin?

Best regards,

2019-06-12 14-43-29
Alan Santos

Hi Hector, 

Thanks for the fast reaction, as you can see, we have the latest version.

UserImage.jpg
Hector Gordin

Hi Alan, are you performing some kind of verification on the assignment before checking for errors? If that's the case, what seems to be happening is that you're cancelling the process before reading a valid code. This is causing the plugin to return an error when you're expecting a different result. Could you please validate this?

Regards

2019-06-12 14-43-29
Alan Santos

Hi Hector,

Thanks for your reply, no I'm not performing any kind of validation or verification, I'm just opening the scanner and closing it, but what I do see here is that in Android I have an outdated version compared to the IOS, so I'll try to generate again the Android and test it to check if I still get the -1 Error code. I'll let you know if it works.

Kind regards

Alan

2019-06-12 14-43-29
Alan Santos

Hi Hector,

Just to give you an update of our issue from yesterday, after generating again the app we were  finally able to get the correct Error code OS-PLUG-BARC-0006 - Scanning cancelled when closing the scan, must say that I expected a better feedback message to the users instead of red error Code.. but ok I guess that is nothing besides creating a customized version of the plugin to catch and handle this error on other way.


Thanks anyway for your help Hector.

Kind regards

Alan Santos

2020-07-28 18-05-12
MMS
Solution

Hi Alan,

Have you tried customizing the message when you click on the "X"?

I did it this way and it works for me.

Best regards

Miguel Silva

Cancel barcode search.png
Screenshot_2023-08-03-11-00-19-753_com.outsystemscloud.personalpppifyly.TrueMarket.jpg
2019-06-12 14-43-29
Alan Santos

Hi Miguel,

I didn't paid attention on that detail that we could call this action directly, instead I was using the UI predefined block that returns only the Barcode result and handle it self the error codes internally.

Thanks for helping

Alan Santos

2020-07-28 18-05-12
MMS

Hi

No problem with this component.


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