
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
barkoder-nativescript
Advanced tools
Nativescript support for Barkoder - a Barcode Scanner SDK for the modern enterprise.
The barKoder Barcode Scanner SDK Nativescript plugin grants an easy to use Nativescript solution with a great and option-rich interface that can be integrated in both iOS and Android apps. Integrating the barKoder Barcode Scanner SDK into your Enterprise or Consumer-facing mobile apps will instantly transform your user's smartphones and tablets into rugged barcode scanning devices without the need to procure and maintain expensive and sluggish hardware devices that have a very short life span.
Even though the barKoder barcode scanner SDK is a relatively new product, it is already more advanced than any competitor API's. Its robust barcode reading engine can be used to read the content of the most widely used barcodes with lightning fast speed and unprecedented recognition rate:
1D - Codabar, Code 11, Code 25, Code 39, Code 93, Code 128, DotCode, EAN-8, EAN-13, Interleaved 2 of 5, ITF-14, MSI Plessey, Pharmacode, Telepen, UPC-A & UPC-E 2D - Aztec Code, Aztec Compact, Data Matrix, DotCode,PDF417, Micro PDF417, QR Code & Micro QR Code
The barKoder SDK features multiple algorithms that handle a wide variety of barcode scanning scenarios with unprecedented performance in terms of speed and success rate:
You can check out our free demo app Barcode Scanner by barKoder available both via Apple App Store & Google Play Store.
If you run the barKoder Barcode Scanner SDK without a valid trial or production license, all results upon successful barcode scans will be partially masked by asterisks (*). You can get a trial license simply by registering on the barKoder Portal and utilizing the self-service for Evaluation License Generation! Each trial license will be good for an initial duration of 30 days and can be deployed to up to 25 devices. For any custom requirements, contact our sales team via sales@barkoder.com
Note that a trial license is only supposed to be utilized in a development or staging environment.
Our support is completely free for integration or testing purposes and granted through the barKoder Portal. After registering and logging into your account, you only need to submit a Support Issue form. Alternatively, you can contact us by email via support@barkoder.com.
This is a guide for the barKoder [NativeScript Plugin]
Install the dependencies and setup your environment
To add the barkoder-nativescript package to your project, you have two options. You can either use the barkoder-nativescript package from npm or from a local path.
To use the package from npm run this command:
npm i barkoder-nativescript
if you are using NPM in your project.
If you prefer to use a local package, download the package from https://barkoder.com, unzip the archive and add the package with setting the package path
tns plugin add <path to barkoder-nativescript package>
Import the Barkoder Constants in your project with:
import { BarkoderConstants } from 'barkoder-nativescript/barkoder-nativescript.common';
At this point the barkoder-nativescript package is installed and imported in your project. Next step is to add the BarkoderView in your layout.
<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo"
xmlns:Barkoder="barkoder-nativescript/barkoder-nativescript.common">
...
<Barkoder:BarkoderView id="barkoderView" class="scanner-container" width="100%" height="70%"/>
...
Inside View-Model we need to init a BarkoderView from layout xml.
export class HelloWorldModel extends Observable implements BarkoderConstants.BarkoderResultCallback {
private barkoderView : any
constructor(args) {
super()
this.barkoderView = args.object.page.getViewById('barkoderView');
this.barkoderView.setLicenseKey("License_Key")
}
scanningFinished(results: any[], thumbnails: any[], resultImage: any): void {
console.log(`${results[0].textualData}`)
console.log(`${results[0].barcodeTypeName}`)
}
SDK is fully initialized and ready for configuration or to start the scanning process.
this.barkoderView.startScanning(this)
For the complete usage of the barkoder-nativescript package please check our sample.
Our SDK requires camera permission to be granted in order to use scanning features.On Android, you specify the permissions in App_Resources/Android/src/main/AndroidManifest.xml. However, this plugin specifies the required permissions for you. @nativescript/camera . For iOS you need to specify camera permission in Info.plist file inside your project
<key>NSCameraUsageDescription</key>
<string>Camera permission</string>
The SDK will scan barcodes even without a valid license; however all results will be randomly masked with (*) Asterisk characters. By using our software you are agreeing to our End User License Agreement. To obtain a valid license, one should create an account here and either get a trial license (to test the software out) or procure a production license that can be used within a live app.
FAQs
Nativescript support for Barkoder - a Barcode Scanner SDK for the modern enterprise.
The npm package barkoder-nativescript receives a total of 77 weekly downloads. As such, barkoder-nativescript popularity was classified as not popular.
We found that barkoder-nativescript demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.