From the command prompt go to your app's root folder.
You can use our plugin form npm (recommended) or you can download from here and use from local path.
tns plugin add cmbsdk-nativescript # or local path
The best way to explore the usage of the plugin is to check our demo app. You can download our demo app from here.
Once you download navigate to demo app root folder and run demo application:
cd cmbSDK_Nativescript/demo
tns run android # or ios
In short to use our plugin in your project here are the steps:
import { CMBReader, CMBReaderConstants } from 'cmbsdk-nativescript';
Open home-view-model.ts from demo app to check this code. All code in our demo app is with short description.
this.cmbReader.startScanning()
IMPORTANT
Usage of the cmbSDK nativescript plugin with an MX device is free, but if you want to utilize the CAMERA DEVICE (scan with the smartphone camera), you need to obtain a license from CMBDN.
he Reader still works without a license, but results are randomly masked with * chars.
It's free to register and you can obtain a 30 day trial license key.
Once the key is obtained there is two ways to use in your application.
this.cmbReader.registerSDK("SKD_KEY");