Give us feedback
Mobile icon

Barcode Plugin

Stable version 5.3.0 (Compatible with OutSystems 11)
Other versions available for 10
Uploaded on 19 Oct by 
 (36 ratings)

Barcode Plugin

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.

Compatibility with MABS Versions

Compatible with MABS 6.3, 7.0, 7.1, 7.2 and 8.0.

Starting on version 4.1.0 the plugin is compatible for all MABS versions. 

Otherwise follow the rules:

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.



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

Copyright (c) 2021 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 (5.3.0)

Important Disclaimer: This version is a Technical Preview. This version of the plugin changes the JavaScript Library being used in PWA (from the zxing-js/browser to html5qr-code), with the goal of improving scanning reliability. What’s new:

  • Migration to the new Javascript library, html5qr-code
  • Adds three new optional parameters for PWA:
  • ShowCameraSelection: If true, the scanner experience in PWA will include an UI for the end-user to switch between the device’s cameras.
  • ScannerFPS: the number of frames per second the scanner will read and thus scan a code. Values over 1000 (including) are not recommend, as it will simply break the app.
  • Hint: A code format. If set, it will only scan codes of the specified format..

Fixed Issues and Improvements:

  • RPM-4128: Add pre-ES6 backwards compatible version of JavaScript.
  • Makes the plugin compatible with MABS 10, by changing the way the ZXing library for iOS is included.

Known Issues:

  • On Firefox for Android:
  • Adaptive Orientation is not working as expected. Currently, there’s no workaround.
  • Switching cameras when ShowCameraSelection is true, for some cameras is resulting in a crash. Currently, there’s no workaround.
  • Camera not opening/starting in Samsung Internet. Currently, there’s no workaround.
  • On some iOS devices, the camera is not focusing properly, even when trying between the different cameras available. Currently, there’s no workaround.
License (5.3.0)

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

Copyright (c) 2021 OutSystems, MIT License.

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

Reviews (8)
26 Oct
in version 5.1.5
Does not work well as PWA.  Inconsistent and ultimately not useable for production PWA applications.
11 Apr
in version 5.1.5
Work pretty good with "normal" qr codes but dont work with qr codes containing non-text characters, because it forces the result as a string. It should return the binary data along the text at least.
in version 4.2.1
It works as an app but it fails as a PWA, I get a Cordova not available error.