Loading
Salesforce now sends email only from verified domains. Read More
Mobile Publisher for Experience Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Scan Barcodes with a Mobile Device Camera

          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
          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

          For complete details, see Scan Barcodes on a Mobile Device in the Lightning Web Components Developer Guide.

           
          Loading
          Salesforce Help | Article