[Barcode Plugin] Multiple Readings

Forge Component
(20)
Published on 2 Aug by OutSystems R&D
20 votes
Published on 2 Aug by OutSystems R&D

Hello,

I am using the 2.1 version of the plugin and i need to do a random number of barcodes reading.

The best way i imagine this is without closing the camera on phone, every time it makes a reading gives a beep and i save the value.

Then i must have a way to tell the plugin i finished my readings and close the app and use the readed values.

Is this possible?


You can't do it with the stock plugin.

You can read QR -> store QR in memory -> ask user if he wants to continue reading or he is done -> open plugin again if continuing, storing o db if done.

But this is a "workaround". If you want "the real thing", you will have to modify the stock plugin with "actual code".

Outsystems uses zbar. You should clone the oficial repo (https://github.com/OutSystems/csZBar) and work from there.

The you will need to change the code of zbar, I believe what you want to achieve can be done if you follow the general guidelines mentioned on this post:

https://stackoverflow.com/questions/12641345/zbar-batch-qr-code-scanning