---
schema_version: "1"
id: bd7d1bab314eae84465bb76621b0659296b601b7c13fcafb9931d5095d431c2a
title: Scan Barcodes with a Mobile Device Camera
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/branded_apps_commun_barcode.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.branded_apps_commun_barcode.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 91b0d6e12caf56435be1aabb61df3cebf87f100723132c955854c43d451991a8
description: Mobile Publisher for Experience Cloud app supports scanning barcodes, such as a UPC symbol or QR codes.
products:
  - Experiences
  - Mobile App
  - Cross Cloud
release: "264"
---
# Scan Barcodes with a Mobile Device Camera

Mobile Publisher for Experience Cloud app supports scanning barcodes, such as a UPC symbol or QR codes.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-branded_apps_exp_cloud-264-0-0-production-enus/cf85363c-215e-4784-bb6a-c5c83c4e7140/images/icon_note.png)

Note Using the BarcodeScanner API to create contact-based features works only in the mobile app, and not on mobile or desktop web.

You can develop and implement a Lightning web component with barcode scanning features using the BarcodeScanner API.

Barcode scanner requires the use of the mobile device camera. The user must grant your app access to the camera.

Using BarcodeScanner in your Lightning web component is straightforward.

1. Import BarcodeScanner into your component definition to make the BarcodeScanner API functions available to your code.
2. Test to make sure BarcodeScanner is available before you call scanning lifecycle functions.
3. Use the scanning lifecycle functions to start, continue, and stop scanning.

![Barcode scanner](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-branded_apps_exp_cloud-264-0-0-production-enus/cf85363c-215e-4784-bb6a-c5c83c4e7140/branded_apps_exp_cloud/images/mobile_publisher_barcode.png)

For complete details, see [Scan Barcodes on a Mobile Device](https://developer.salesforce.com/docs/component-library/documentation/en/lwc/use_barcodescanner) in the Lightning Web Components Developer Guide.

#### See Also

- [_Lightning Web Components Dev Guide_: Scan Barcodes on a Mobile Device](https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_barcodescanner)
- [_Lightning Web Components Dev Guide_: Use the BarcodeScanner API](https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_barcodescanner_in_a_lightning_component)
- [_Lightning Web Components Dev Guide_: Compatibility and Requirements](https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_barcodescanner_compatibility)
- [_Lightning Web Components Dev Guide_: Considerations and Limitations](https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_barcodescanner_considerations)