TS MultiFormatScanner (QR & Barcodes)
Overview
Deprecated in favor of: https://marketplace.mendix.com/link/component/117627
The MultiFormatScanner widget can be used in Responsive and Hybrid applications. The widget works both in Online and Offline applications! It makes use of the ZXing library and supports QR Codes and multiple Barcode formats. For an overview with all supported types of QR code and Barcodes visit: https://zxing-js.github.io/library/
Documentation
Deprecated in favor of: https://marketplace.mendix.com/link/component/117627
Description
The MultiFormatScanner widget can be used in Responsive and Hybrid applications.
The widget works both in Online and Offline applications!
It makes use of the ZXing library and supports QR Codes and multiple Barcode formats. For an overview with all supported types of QR code and Barcodes visit: https://zxing-js.github.io/library/
Typical usage scenario
You want to scan a QR or Barcode in a web application using the camera on a phone or using a webcam on a desktop environment.
Features and limitations
- Supports QR codes
- Supports Barcodes
- Offline capable
- On iOS the browser only works in Safari when used in a browser app. For Hybrid a fallback is implemented.
Dependencies
- Mendix Modeler 7.23.11 and up
Configuration
Drag the MultiFormatScanner to a page where the context object contains a String where the contents of the QR code can be stored. Based on the size of the contents you can change the attribute length. If you are using this in an offline application make sure to configure the on change nanoflow instead of the microflow or your app will break.
Known bugs
- When the page is reused the widget might sometimes not close correctly resulting in the scanner to not render. If the page in the meantime is closed and reopened it works again.