Run our Sample Apps
The best way to start working with the Scandit Data Capture SDK is to run one of our sample apps. In this guide we will go through the available apps and how to run them.
Available Samples
We have created both simple and advanced samples that show you how use various features of the Scandit Data Capture SDK. The simple samples allow you to get going quickly, while the advanced samples show you how to use additional settings and setup the scanner for the best user experience.
Here’s a list of our available samples on Titanium:
Run the Samples
Before you can run a sample app, you need to go through a few simple steps:
Sign in to your Scandit account and download the newest Titanium modules at ssl.scandit.com/sdk. Unzip the archive and go to the samples folder.
Set the license key. To do this, sign in to your Scandit account and find your license key at ssl.scandit.com/licenses.
Once you have the license key, add it to the sample that you’d like to run:
ScanditCore.DataCaptureContext.forLicenseKey('-- ENTER YOUR SCANDIT LICENSE KEY HERE --')
Install the dependencies.
npm install npm install -g alloyNote
If you’re using the zip archive downloaded from the dashboard, make sure to copy the distribution zip files into the sample folder.
Run the sample. We recommend running the samples on a physical device as otherwise no camera is available.
ti build -p [ios|android] -T device -C <DEVICE ID>Note
You probably need to setup signing for iOS. To do this, open the Xcode project and setup signing in the project settings. You can also run the sample from Xcode by clicking the Build & Run button.
Barcode Capture Samples
Basic sample that uses the camera to read a single barcode. |
Sample that uses the camera to read a single QR code that starts with “09:” but ignores/rejects all other codes. |
Demonstrates how you can adapt the scanner settings best to your needs and experiment with all the options. |