Skip to content

A sample app to test native module logic that allows for the use of Socket Mobile barcode scanners.

Notifications You must be signed in to change notification settings

owencraston/BarcodeScannerSdk

Repository files navigation

BarcodeScannerSdk

  • A android test app to validate native module logic that communicates with Socket Mobile Barcode scanners.
  • I have been testing this with the Socket Mobile S740 scanner.
  • To use this app with a scanner you will to run it on a real device.
  • This App/Native Module is NOT IOS READY.
  • This app also uses embedded capture library so that it does not need to use the companion service app.

A Note About keys

Getting started

  • Make sure you have properly set up your environment for React Native / Android
    • Docs fo this can be found here
  • Clone repo locally
  • run yarn install

API

  • The typescript facing API can be found here
  • Socket Specific Logic can be found here

To run on android

  • yarn android
  • If this does not prompt you to open a new terminal window with a metro server running, create a new terminal window and run...
    • yarn start
    • then in another window run yarn android

Pairing flow

  • This Module does NOT handle forming the bluetooth bond with the scanner.
  • To achieve this I wrote another custom Bluetooth Native Module which has a typescript facing API that can be found here
  • A complete pairing flow with examples of how to form the bluetooth bond, grant permissions, and test scanner features can be found here
    • This is the pairing flow that will launch when you run the app.

About

A sample app to test native module logic that allows for the use of Socket Mobile barcode scanners.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published