@ticnat/nativescript-socketmobile
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@ticnat/nativescript-socketmobile

ns plugin add @ticnat/nativescript-socketmobile

Usage

  1. create a new instance of the scanner plugin:
const socket = new Socketmobile(AppKey,DeveloperID, AppID);

and pass you appkey developerId and appId obtained from Socket Mobile Developer Portal

  1. initialize the scanner with the callbacks:
socket.didReceiveDecodedData = (data: string, device, result) => {
    console.log('scannedText', data);
}
socket.initScanner();
  1. Connect and pair your sockermobile scanner with the iPad through socket mobile companion app

  2. add these to info.plist file

<key>UISupportedExternalAccessoryProtocols</key>
<array>
    <string>com.socketmobile.chs</string>
</array>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Using bluetooth to connect the app to the barcode scanner</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>Using bluetooth to connect the app to the barcode scanner</string>
  1. All done!

Notice:

  1. This plugin tested on Socket mobile S740 model but I think it works with other models.

  2. The plugin is under development, if you have any improvements Welcome to PRs!

License

Apache License Version 2.0

/@ticnat/nativescript-socketmobile/

    Package Sidebar

    Install

    npm i @ticnat/nativescript-socketmobile

    Weekly Downloads

    0

    Version

    1.0.2

    License

    Apache-2.0

    Unpacked Size

    27.9 kB

    Total Files

    21

    Last publish

    Collaborators

    • opada-eng