Barcode and QR-code scanning with the device camera | Aquro Help Center

Intro

The built-in Barcode and QR scanner make it possible to scan barcodes and qr-codes using the camera on a device. To test the Barcode scanner you will need to use the Aquro Preview app (because their is now way to test the device camera in the Aquro app studio in a browser). 

 

Using Visual Coding

The following Visual Coding block can be used to utilize this feature:

Device.Barcode.Scan
Scans a barcode with the camera on the device

Parameters:
None

Return values:
Code (Value) - The scanned barcode
Format (Value) - The format of the scanned barcode
Error (Value) - Error if something went wrong

Outlets:
GotBarcode - Called if a barcode got returned from the camera
Cancelled - Called if the action of scanning a barcode was cancelled by the user
Error - Called if something went wrong

 

JavaScript and advanced usage:

You can always use your own custom JavaScript code to customize the way you want this feature to behave in your app.
 
Aquro uses the phonegap-plugin-barcodescanner Cordova plugin for this device feature. 

More documentation and code examples for this plugin can be found here: https://github.com/phonegap/phonegap-plugin-barcodescanner