This example app demonstrates how to integrate the Scanbot Barcode Scanner SDK into your Cordova application.
The Scanbot Barcode Scanner SDK is a simple and intuitive plugin that allows you to turn smartphones into fast and reliable barcode scanners.
It operates entirely offline on the user's device and takes only 0.04 seconds to scan barcodes. Scans are accurate even under challenging conditions, including damaged, small, or distant barcodes and low-light environments.
The plugin can be integrated into your app within minutes and comes with Ready-To-Use UI components, which allow you to customize the barcode scanner to your needs.
💡 For more details about the Scanbot Barcode Scanner SDK for Cordova, please check out our documentation.
Install the latest versions of Cordova CLI and Ionic CLI. Fetch this repository and navigate to the project directory.
cd scanbot-barcode-scanner-sdk-example-cordova-ionic/
Install node modules:
npm install
Install Cordova platforms and plugins (defined in the config.xml
of this app):
ionic cordova prepare
Check installed platforms and plugins:
ionic cordova platform ls
ionic cordova plugin ls
You should see Android and iOS as installed platforms and cordova-plugin-scanbot-barcode-scanner as an installed plugin.
Connect a device via USB and run the app.
Android:
ionic cordova run android
iOS:
ionic cordova prepare ios
Open the workspace (!) platforms/ios/Barcode Scanner SDK Example Ionic.xcworkspace
in Xcode and adjust the Signing and Provisioning settings. Then, build and run the app in Xcode.
If scanning failed, check the following:
- Confirm that your app has the necessary permissions to use the camera.
- Check if the correct barcode types are enabled in the SDK settings.
The Scanbot Cordova barcode scanner supports all common 1D- or 2D barcode types, such as QR codes, or Aztec Codes, as well as multiple postal symbologies, including:
Barcode type | Barcode symbologies |
---|---|
1D Barcodes | EAN, UPC, Code 128, GS1-128, Code 39, Codabar, ITF, Code 25, Code 32, Code 93, Code 11, MSI Plessey, Standard 2 of 5, IATA 2 of 5, Databar (RSS), GS1 Composite |
2D Barcodes | QR Code, Micro QR Code, Aztec Code, PDF417 Code, Data Matrix Code, GiroCode, NTIN Code, PPN, UDI, Royal Mail Mailmark, MaxiCode |
Postal Symbologies | USPS Intelligent Mail (IMb), Royal Mail RM4SCC Barcode, Australia Post 4-State Customer Code, Japan Post 4-State Customer Code, KIX |
💡 Please visit our docs for a complete overview of the supported barcode symbologies, as well as information on available data parsers for extracting structured barcode data.
Integrating the Scanbot Cordova Barcode Scanner plugin into your Cordova app takes just a few minutes, and our step-by-step guides make the process even easier.
💡 Our Ionic Cordova Barcode Scanner tutorial walks you through the integration process step by step. Follow along to implement a powerful barcode scanning feature quickly.
Alternatively, check out our developer blog for a collection of in-depth tutorials, use cases, and best practices.
Need help integrating our Barcode Scanner SDK into your Cordova project? We offer free developer support via Slack, MS Teams, or email.
As a customer, you also get access to a dedicated support Slack or Microsoft Teams channel to talk directly to your Customer Success Manager and our engineers.
The barcode scanner example app will run for one minute per session without a license. After that, all functionalities and UI components will stop working.
To try the Barcode Scanner without the one-minute limit, you can request a free, no-strings-attached 7-day trial license.
Our pricing model is simple: Unlimited barcode scanning for a flat annual license fee, full support included. There are no tiers, usage charges, or extra fees. Contact our team to receive your quote.
Besides Cordova, the Scanbot Barcode Scanner SDK is also available on: