Skip to main content

Getting Started | Capacitor Barcode Scanner

Installation

The Barcode Scanner SDK Capacitor Module is available as an npm package.

You can simply add it to your project by npm install:

npm i capacitor-plugin-scanbot-barcode-scanner-sdk

And sync your project with:

npx cap sync

Permissions

If you are going to use any of our features that require the usage of the device's camera, you must grant camera permission.

Android (must be added in your android/app/src/main/AndroidManifest.xml file)

<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" android:required="false" />

iOS (must be added in your Info.plist file)

<key>NSCameraUsageDescription</key>
<string>Provide access to the camera to detect barcodes.</string>

Want to scan longer than one minute?

Generate your free "no-strings-attached" Trial License and properly test the Scanbot SDK.

Get your free Trial License

What do you think of this documentation?


On this page

Scroll to top