A live camera that reads QR codes and barcodes, for both of Bubble’s worlds: a native element for mobile apps and a web element for browsers. The fields, states, events and actions have the same names on both sides, so a workflow written once runs on either.
Two elements, 17 fields, 10 states, 8 events and 10 actions.
QR Scanner on a mobile page, QR Scanner (web) on a
web page. Give it the size and corner radius you want — the scanner fills the
element you drew.QR Scanner's last code.That is a working scanner. Everything below is optional.
On the web the page must be served over HTTPS for any browser to allow a camera. Bubble already does that. If your app is embedded in an iframe, that iframe has to allow the camera too.
Every format the device can read, always. There is no list to configure.
| 2D | QR, Data Matrix, PDF417, Aztec |
|---|---|
| Retail | EAN-13, EAN-8, UPC-A, UPC-E |
| Logistics | Code 128, Code 39, Code 93, ITF, Codabar |
The last_format state tells you which kind was just read (qr, ean13,
code128…), so a workflow can treat a ticket and a product differently.
Every one has a default that works. A field you never touch does the right thing.