Mobile apps

What is barcode and QR scanning in an app?

Barcode and QR scanning means an app reads one-dimensional barcodes or two-dimensional QR codes through the phone camera, then acts on the decoded text: finding a product, checking in a guest, opening a record or starting a payment.

How it is built

Developers use ML Kit on Android and iOS, Apple's Vision framework or open-source decoders such as ZXing. Flutter and React Native have plugins that wrap them. Camera permission is needed and should be requested with a clear reason.

Real-world difficulties

Glare on laminated labels, dirty or damaged codes, tiny print, poor light and motion blur. Industrial work that scans hundreds of items an hour often needs a dedicated scanner or a phone with a hardware scan button.

Design tips

  • Show a framed target and give instant feedback with a vibration or sound.
  • Offer a flashlight toggle and a manual entry field as a fallback.
  • Validate the decoded value on the server; a QR code can be copied or faked.
  • Choose the right symbology: EAN or UPC for retail, Code 128 for logistics, QR for flexible data.

Inventory, ticketing and field service apps commonly depend on this.

Questions, answered

Yes, modern libraries read most formats together.

The scanning is, but codes can point to malicious sites, so show the destination before opening.

By the Stegnor team · Updated