QR / Barcode Scanner

Overview

Scan QR Codes and Barcodes directly into your app via the device camera. Used for in-store retail shopping, warehouse management, data center operations, etc.

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 GoNative JavaScript Bridge commands to access its functionality.

To scan a barcode, define a function in javascript, for example:

function process_barcode(data) { 
    if (data.success) {
        alert('got barcode', data.code); 
    }
}

️GoNative JavaScript Bridge

To initiate a scan, open the url:

window.location.href = 'gonative://barcode/scan?callback=process_barcode';