1. Home
  2. Tutorials
  3. Using Native Functionality
  4. Scan a Barcode

Scan a Barcode

barcode scanner

You can read barcodes and process the contained information in your app. The barcode scanning Action uses the device camera hardware together with barcode processing functionality. When barcodes are scanned, your app can access the data within them, such as EAN numbers and QR codes.

  1. Add the Capture Barcode (iOS) / Scan a Barcode (Android) Action to an Event in your app, such as the user tapping a Button. Enter display settings including informational text on iOS and sound effect status on Android. capture barcode When the Action executes, the user will leave the app and see the barcode scanner screen, which looks similar to when the device camera is in operation, but with additional scanning indicators visible.
  2. When the user captures a barcode in the scanning screen, the Captured Event will fire. Add Actions there to retrieve the data scanned, including the type of data (EAN number, QR code, etc) and the data value itself (string of numbers, URL, text, etc). Use the Event Data to build the data into your app processing. barcode captured If you need to tailor what your app does next depending on the type of data scanned, use If Else Actions in conjunction with the type (iOS) / formatString (Android) value. barcode ean
  3. Add Actions to the nested Failed and Cancelled Events if you need to carry out different functionality when scanning does not complete.

By combining the barcode scanner Action with other Actions in your app, you can build functionality that utilizes the user’s mobile device hardware. If you simply need to access the user camera, use the Take a Photo / Select Image from Photos Actions instead.

Was this article helpful to you? Yes No

How can we help?