expo-zebra-barcode-data-intent
v0.1.0
Published
My new module
Maintainers
Readme
Expo Zebra Barcode Data Intent
Access barcode data from embedded barcode scanners on Zebra devices via DataWedge intent broadcast.
✅ Works on Android Zebra devices (e.g., ET45, etc.)
⚙️ DataWedge Profile Requirement (Important)
❗ Zebra devices use DataWedge to manage barcode scanning behavior.
This module does not auto-create or configure a DataWedge profile.
You must manually create and configure a profile on the device for it to work.
📌 Required DataWedge Settings
To enable this module to receive barcode data:
- Open DataWedge on your Zebra device.
- Create or edit a profile (e.g.,
Profile0(default)) (see the explanation ofProfile0(default)below) - Under Intent Output:
- ✅ Enable Intent Output
- Intent Action:
com.symbol.datawedge.api.RESULT_ACTION - Intent Delivery:
Broadcast Intent
Without these settings, your app will not receive any scan data.
📦 Installation
npm install expo-zebra-barcode-data-intent
or
yarn add expo-zebra-barcode-data-intentUsage
import * as ExpoZebraBarcodeDataIntent from "expo-zebra-barcode-data-intent";
useEffect(() => {
const subscription = ExpoZebraBarcodeDataIntent.listenToScans(({ barcode }) => {
console.log(barcode);
});
return () => subscription.remove();
}, []);📋 DataWedge Profile Types (Visible Profiles)
When you open DataWedge on a Zebra device, you’ll see several visible profiles:
Profile0 – The default profile automatically used for any app not associated with a custom profile.
⚠️ Since it applies globally, Profile0 cannot be directly associated with specific apps. You may disable it to prevent scanning in unconfigured apps.
Launcher – Used when the Android launcher (home screen) is active. Not typically modified.
DWDemo – A profile pre-configured for Zebra's demo app (
DWDemo). Demonstrates scan handling viaStartActivityintent. Not relevant for most custom apps.User-defined profiles – Custom profiles created by you.
✅ These profiles can and should be associated with your app to control scanning behavior.
