Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Capacitor
  3. cordova-plugin-qrscanner

cordova-plugin-qrscanner

MITJavaScript2.6.0

A fast, energy-efficient, highly-configurable QR code scanner plugin for Cordova apps and the browser.

GitHubGitHub
581 stars786 forks0 contributors

What is cordova-plugin-qrscanner?

cordova-plugin-qrscanner is a plugin for Cordova applications that enables fast and efficient QR code scanning using the device's native camera. It solves the problem of building customizable scanning interfaces within hybrid mobile apps by rendering the camera preview behind the webview, allowing full HTML/CSS/JS control over the UI. It also works as a standalone library for browser-based projects.

Target Audience

Cordova/PhoneGap developers building hybrid mobile apps that require QR code scanning functionality, as well as web developers needing a QR scanner for browser, Electron, or NW.js applications.

Value Proposition

Developers choose this plugin for its native performance, energy efficiency, and high configurability across multiple platforms. Its unique approach of placing the camera preview behind the webview enables fully customizable scanning interfaces without sacrificing speed.

Overview

A fast, energy efficient, highly-configurable QR code scanner for Cordova apps and the browser.

Use Cases

Best For

  • Adding QR code scanning to Cordova-based mobile wallets or payment apps
  • Building custom scanning interfaces with HTML/CSS/JS in hybrid apps
  • Creating cross-platform QR scanners for iOS, Android, and Windows
  • Integrating QR scanning into Electron or NW.js desktop applications
  • Implementing permission priming for better user onboarding
  • Developing energy-efficient scanners for prolonged battery life

Not Ideal For

  • Native mobile apps built without Cordova or webview integration
  • Projects requiring scanning of barcode types beyond QR codes (e.g., UPC, Data Matrix)
  • Applications needing server-side QR decoding without camera access
  • Teams wanting pre-styled, drop-in scanner components without custom UI development

Pros & Cons

Pros

Native Camera Performance

Renders the camera feed natively behind the webview, enabling high-speed scanning without HTML5 video lag, as highlighted in the native camera preview feature.

Cross-Platform Coverage

Supports iOS, Android, Windows, and browser platforms including Electron and NW.js, providing a consistent API across diverse environments.

Energy Efficiency

Optimizes battery usage by intelligently managing camera and processing resources, crucial for mobile apps with prolonged scanning needs.

Flexible Permission Management

Offers early permission priming via the prepare method and guides users to settings if denied, improving user onboarding and access handling.

Cons

QR-Only Scanning

Limited to QR code decoding only, not supporting other common barcode formats, which restricts its use in broader scanning applications.

Browser Platform Compromises

On browser platforms, lacks light support, has simplified camera selection, and appends video preview to DOM, potentially causing styling conflicts and reduced functionality.

Cordova Dependency Overhead

Requires Cordova setup and plugin installation, adding complexity for projects not already using Cordova or similar hybrid frameworks.

Frequently Asked Questions

Quick Stats

Stars581
Forks786
Contributors0
Open Issues160
Last commit2 years ago
CreatedSince 2016

Tags

#cordova-plugin#camera#webview-integration#qr-code-scanner#qrcode#javascript-library#cordova#nw-js#qrcode-scanner#mobile-development#cross-platform#browser-compatibility#qr#camera-access#qrcode-reader#electron

Built With

U
UMD
J
JavaScript
W
Web Workers
C
Cordova

Included in

Capacitor612
Auto-fetched 18 hours ago

Related Projects

cordova-plugin-code-pushcordova-plugin-code-push

A cloud service that enables Cordova and React Native developers to deploy mobile app updates directly to their users’ devices.

Stars4,413
Forks531
Last commit1 year ago
cordova-plugin-googlemapscordova-plugin-googlemaps

Google Maps plugin for Cordova

Stars1,670
Forks919
Last commit2 years ago
cordova-plugin-firebasecordova-plugin-firebase

Cordova plugin for Google Firebase

Stars999
Forks1,550
Last commit2 years ago
cordova-plugin-crosswalk-webviewcordova-plugin-crosswalk-webview

Crosswalk WebView Cordova Plugin (UNMAINTAINED)

Stars945
Forks343
Last commit6 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub