Cordova Barcode Scanner Plugin

Mobile Data Capture for Cordova

Get Started

Disclaimer

This Plugin does not work on other platforms such as Desktop or Web Apps.

Key Requirements

Mobile Platform

  • Android 5.0 (API Level 21) and higher
  • iOS 13 or higher

Devices

  • Rear-facing camera with autofocus

Architecture

  • Android: armeabi-v7, arm64-v8a, x86, x86_64
  • iOS: arm64, x86_64

Distribution Channels

  • npm registry (npmjs.com)

Development Tools

  • Node.js, npm
  • Cordova CLI 9.x+

Cordova Platforms

  • Cordova Android 8.1+
  • Cordova iOS 5.1+

Specific Notes iOS

  • macOS with the latest Xcode and Command Line Tools

Why Scanbot SDK?

Fast & reliable

The Scanbot Barcode Scanner scans barcodes fast and reliably, creating a flawless scanning experience

iOS Barcode Scanner SDK

Create a prototype in hours

You can create a first prototype in just a few hours with our detailed documentation and example projects

Developer support via Slack/Teams

Our developers will help you solve any problems you may encounter

Scanbot SDK Offline usage

100% offline

The Scanbot SDK uses on-device intelligence only, making the solution GDPR- & CCPA-/CAAP-compliant

Add a Cordova Barcode Scanner plugin to your mobile app in no time

Integrating the Cordova Barcode Scanner SDK into your app takes no more than a couple of hours with our customizable ready-to-use UI components. Empower your mobile app to extract data from all standard 1D and 2D barcode formats with GDPR- and CCPA-compliant software components. Reliable detection within 0.2 seconds, even with damaged codes, under bad lighting conditions, or from poor angles.

Looking for a cost-effective solution? With Cordova QR Code Scanner you can create workflows for the recognized and extracted data using additional modules.

Getting Started with the Scanbot Cordova Barcode Scanner

The Scanbot Cordova Barcode Scanner SDK is available as an npm package. You can easily integrate the Scanbot Cordova Barcode Scanner in your app:

var result = await
ScanbotBarcodeSdk.startBarcodeScanner(configuration);

You can configure the 1D and 2D barcode types that you want to recognize:

var configuration: BarcodeScannerConfiguration = {
  barcodeFormats: [
    'AZTEC',
    'CODABAR',
    'CODE_39',
    'CODE_93',
    'CODE_128',
    'DATA_MATRIX',
    'EAN_8',
    'EAN_13',
    'ITF',
    'MAXICODE',
    'PDF_417',
    'QR_CODE',
    'RSS_14',
    'RSS_EXPANDED',
    'UPC_A',
    'UPC_E',
    'UPC_EAN_EXTENSION',
    'MSI_PLESSEY',
  ],
};

Also, you can customize the UI style of your Cordova Barcode Scanner:

var configuration: BarcodeScannerConfiguration = {
  ...
  finderLineColor: '#ff0000',
  topBarBackgroundColor: '#00ff00',
  cancelButtonTitle: 'Cancel',
  finderTextHint: 'Custom hint text...',
  finderAspectRatio: { width: 300, height: 200 },
  finderLineWidth: 2,
  ...
};

You can check our Cordova documentation for further information on customization and configuration.

Complete example projects

To get off to a flying start, check out our GitHub repository. There, you can find a full example project of the Scanbot Barcode Scanner SDK Cordova Plugin with the Cordova and Ionic Framework. The example project demonstrates the integration of all API methods of the Scanbot Cordova Barcode Scanner SDK, such as 1D and 2D barcode scanning, UI customization, and more.