barcode-plugin
Mobile icon

Barcode Plugin

Supported
Stable version 6.0.0 (Compatible with OutSystems 11)
Other versions available for 10
Uploaded
 on 9 Sep (yesterday)
 by 
OutSystems
4.1
 (41 ratings)
barcode-plugin

Barcode Plugin

Details
Scan barcodes and QR codes using this plugin for mobile apps
Read more

Designed for mobile apps, this plugin enables an app to scan 1D and 2D barcodes (such as QR codes, Data Matrix, and Aztec codes). See the complete list of encoding types below.

 

How to use this plugin?

Create your own logic

Use the ScanBarcode client action to open the camera and start the scanning session. If a 1D or 2D barcode is scanned successfully, the result will be available in the output parameter ScanResult. The usage of the front or back camera can be defined by setting a CameraDirection parameter to either “front” or “back” in the Settings parameter. You can also enable or disable the flash and add a scan button to the native side for additional control of the scanning event.

 

Use Accelerators

You can implement the ScanCode block included in the plugin to accelerate development. Drag and drop it onto the screen, define a handler action, and assign its output parameter to a local variable.


You can learn more about using the Barcode Plugin.


Supported encoding types

This plugin allows you to read both 1D and 2D barcodes. This is the full list of encoding types supported:

  • UPC-A

  • UPC-E

  • EAN-8

  • EAN-13

  • ISBN-10

  • ISBN-13

  • ISBN-13 Dual Barcode

  • Code 39

  • Code 93

  • Code 128

  • GS1 DataBar

  • ITF-14

  • Codabar

  • QR Code *

  • PDF 417

  • Data Matrix

  • Aztec Code


Barcode Demo App

Use the dropdown on the Download button at the top of the page to test our demo app called BarcodeDemoApp. You’ll be able to see an example of how the current version of the Barcode Plugin is implemented and access a menu where you can change and try out different settings.


MABS Compatibility

The latest version (5.6.0) of the Barcode Plugin is compatible with the supported MABS versions available: 

  • MABS 11

  • MABS 10


Additional information regarding MABS compatibility:

Using MABS >= 5.0: use plugin version >= 4.0.0

Use this version when generating mobile apps for Android P. Version with support library 28.

Using MABS < 5.0: use plugin version < 4.0.0

Use this plugin version with older MABS versions.

 

Licensing

Copyright (C) 2012-2018 ZXing authors, Journey Mobile, Apache License 2.0.

Copyright (c) 2024 OutSystems, MIT License.

Copyright (c) 2018 ZXing for JS, MIT License.

ZXingObjC under Apache License 2.0.


* QR CODE is a registered trademark of Denso Wave Incorporated.

Release notes (6.0.0)

IMPORTANT: This version of Barcode Plugin contains breaking changes that may require you to modify how your app uses the Plugin in order for you to be able to publish. Refer to the full release notes below for more information.

 

  • BREAKING CHANGES

    • The static entity “Formats” was renamed to “Format”, and its identifiers start in 1 instead of 0.

      • If you were using “Formats” in your app, you will need to change to this new entity. Also, if you were storing the integer identifiers, you may need to adapt that logic considering that the identifiers have been incremented.

    • The “ResultScanned” in ScanCode Block and “ScanResult” in ScanBarcode client action have changed from Text to a “ScanResult” Structure.

      • This structure includes “Text” - which corresponds to the scan result, exactly the same as older versions - and “Format”, a field for the barcode format.

  • Features

    • Android and iOS

      • Support “Hint” field to allow scanning a specific format (e.g. only QR Codes). This feature was available in PWA before, now it’s also available in native mobile apps.

    • Android, iOS and PWA

      • Return scanned barcode format.

  • Performance Improvements

    • Android

      • Reduce memory consumption when scanning with ML Kit.

  • Bug Fixes

    • PWA

      • RPM-6100 - ScanBarcode client action not scanning properly if Hint is not defined.

License (6.0.0)

Copyright (C) 2012-2018 ZXing authors, Journey Mobile, Apache License 2.0.

Copyright (c) 2024 OutSystems, MIT License.


Copyright (c) 2020 html5-qrcode, MINHAZ <minhazav@gmail.com>, Apache License 2.0.

Reviews (13)
by 
8 Aug
in version 5.6.0
Functionality is OK, but using the client actions versus the button somehow generates vastly different capabilities on a PWA. This doesn't make sense to me, but my testing indicates it is consistently true. If I use the included button block, the scanner rapidly and successfully reads codes. If I use the client action with my own button, scanning is very difficult. I am not sure why this is the case, as I've investigated the barcode scanner module and it appears they use the same scan mechanism.

Additionally, please allow for applying custom classes for the button. Without this, combined with the above limitation, it's not possible to modify the button. 
Answer from the owner
9 Sep (12 hours ago)
in version 5.6.0
Hi Scott,

Thank you for sharing your feedback about the Barcode plugin.

We just released version 6.0.0 of the plugin which, among other things, fixes this behaviour you were noticing when using the plugin on a PWA.

We have also taken your feedback about custom classes for the button under consideration.

Best regards,
Alex Jacinto
by 
26 May
in version 5.6.0
Very useful component, thanks!
by 
17 May
in version 5.6.0
Works so well and scan really fast.
Team
OutSystems
Other assets in this category