npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

capacitor-datawedge-plugin

v1.0.2

Published

Capacitor plugin for Zebra DataWedge - Complete Android implementation with 35+ API methods

Downloads

15

Readme

Capacitor DataWedge Plugin

Comprehensive Android implementation of Zebra DataWedge API for Capacitor applications.

Installation

npm install github:maxilosgr/capacitor-datawedge-plugin
npx cap sync

Demo Application

📱 Try the Demo App

A comprehensive demo application is available that showcases all 35+ plugin methods with a complete UI implementation. The demo app provides:

  • Working examples of every API method
  • 5-tab interface for different feature categories
  • Real-time barcode scanning demonstration
  • Profile configuration examples
  • Complete source code for reference

Clone and run: git clone https://github.com/maxilosgr/capacitor-datawedge-plugin-demo-app.git

Features

35+ Implemented Methods

Configuration Management (9 methods)

  • createProfile() - Create new DataWedge profile
  • cloneProfile() - Clone existing profile with all settings
  • renameProfile() - Rename existing profile
  • deleteProfile() - Delete profile
  • importConfig() - Import configuration from file
  • restoreConfig() - Reset to factory defaults
  • setConfig() - Update profile configuration
  • setDisabledAppList() - Manage blocked apps
  • setIgnoreDisabledProfiles() - Control disabled profile behavior

Query Operations (10 methods)

  • getVersionInfo() - Get DataWedge version details
  • getDatawedgeStatus() - Check enabled/disabled status
  • getScannerStatus() - Get scanner state
  • getActiveProfile() - Get current profile name
  • getProfilesList() - List all profiles
  • enumerateScanners() - List available scanners
  • getAssociatedApps() - Get apps linked to profile
  • getConfig() - Get profile configuration
  • getDisabledAppList() - Get blocked apps list
  • getIgnoreDisabledProfiles() - Get ignore setting

Runtime Operations (14 methods)

  • enableDatawedge() / disableDatawedge() - Control DataWedge service
  • enableScannerInput() / disableScannerInput() - Control scanner input
  • softScanTrigger() - Trigger barcode scan programmatically
  • softRfidTrigger() - Trigger RFID scan programmatically
  • switchToProfile() - Switch active profile
  • switchScanner() - Change active scanner
  • switchScannerParams() - Temporarily modify scanner settings
  • setDefaultProfile() - Set default profile
  • resetDefaultProfile() - Reset to Profile0
  • enumerateTriggers() - List hardware triggers
  • notify() - Play notification (beep/vibrate/LED)
  • setReportingOptions() - Configure reporting

Notification Management (2 methods)

  • registerForNotification() - Register for status notifications
  • unRegisterForNotification() - Unregister from notifications

Usage Example

import { DataWedge } from 'capacitor-datawedge-plugin';

// Initialize scanner
await DataWedge.enableDatawedge();
await DataWedge.enableScannerInput();

// Register scan listener
await DataWedge.registerScanListener();

// Listen for scan events
DataWedge.addListener('scanReceived', (event) => {
  console.log('Barcode:', event.data);
  console.log('Type:', event.labelType);
});

// Create and configure profile
await DataWedge.createProfile({ profileName: 'MyApp' });

const config = {
  profileName: 'MyApp',
  profileEnabled: true,
  configMode: 'UPDATE',
  config: {
    PLUGIN_CONFIG: {
      PLUGIN_NAME: 'INTENT',
      PARAM_LIST: {
        intent_output_enabled: 'true',
        intent_action: 'com.yourapp.SCAN',
        intent_delivery: '2'
      }
    }
  }
};
await DataWedge.setConfig(config);

// Trigger scan programmatically
await DataWedge.softScanTrigger({ action: 'START_SCANNING' });

Events

scanReceived

Triggered when barcode/RFID data is scanned:

{
  data: string;        // Scanned data
  labelType: string;   // Barcode type (EAN13, CODE128, etc.)
  timestamp: number;   // Scan timestamp
}

notificationReceived

Status and configuration change notifications:

{
  type: string;  // SCANNER_STATUS, PROFILE_SWITCH, etc.
  data: any;     // Notification-specific data
}

DataWedge Configuration

Configure a DataWedge profile with:

  1. Intent Output: Enable with action matching your app (e.g., com.yourapp.SCAN)
  2. Intent Delivery: Set to Broadcast (2)
  3. Associated App: Your app's package name
  4. Scanner Input: Enable desired scanner types

Requirements

  • Android: API 22+ (Android 5.1+)
  • DataWedge: 6.0+ (11.4 recommended)
  • Capacitor: 7.0.0+
  • Device: Zebra/Symbol/Motorola with DataWedge

Version Compatibility

| DataWedge | Features | |-----------|----------| | 6.0+ | Basic scanning, enable/disable | | 6.3+ | Scanner enumeration | | 6.4+ | Profile creation | | 6.5+ | Configuration management | | 6.6+ | Scanner input control | | 6.7+ | Import/export | | 7.0+ | RFID support | | 11.4+ | Full feature set |

API Documentation

See the TypeScript definitions for complete API documentation.

Resources

Developer

Connect I.T - Gregorios Machairidis 2025

License

MIT