Open Source Scanner
Once the premium module has been added to your app, you may use the following APIs to access its functionality .

Overview

This implementation of Barcode Scanning SDK uses open source libraries which do not require any additional paid license.
For Android, we are using Zebra Crossing library at https://github.com/zxing/zxing For iOS, we are using hyperoslo library at https://github.com/hyperoslo/BarcodeScanner

Implementation Guide

Once the premium module has been added to your app, you may use the following APIs to access its functionality.
To scan a barcode, define a function in javascript, for example:
1
function process_barcode(data) { if (data.success) {
2
alert('got barcode', data.code); }
3
}
Copied!
Initiate a scan by opening gonative://barcode/scan?callback=process_barcode
You can do this via an "a href" link, or via javascript:
window.location.href='gonative://barcode/scan?callback=process_barcode';
Last modified 1yr ago