Manatee Works Barcode Scanner SDK

Manatee Works Barcode Scanner SDK

Manatee Works Barcode Scanner SDK Plugin for Ionic


Manatee Works

Manatee Works

Member since 2016


iOS, Android  
5 years ago
4 years ago

Manatee Works Barcode Scanner SDK Plugin

Version 2.1

Guide on how to add the Manatee Works Barcode Scanner SDK PhoneGap plugin to your project(s)

For more in-depth info, visit our website at

Please refer to our cordova plugin readme for more usage details

First things first: Please have the latest versions of the software that you are trying to run so:

  1. Have the latest version of nodejs
  2. Install the latests cordova and ionicnpm install -g ionic cordova
  3. Start a basic ionic appionic start myMwApp --v2

    This will create an ionic v2 app that will use the tabs template, you could use:ionic start myMwApp blank --v2

    for a blank ionic app

  4. Change the directory to myMwAppcd myMwApp/

##Basic guide (Ionic 2)

  • Add plugin to the project with:

``` ionic plugin add manateeworks-barcodescanner


ionic plugin add


ionic plugin add LOCAL_PATH_TO_THE_FOLDER_WITH_PLUGIN (if you are adding from local folder)   


  • Add the following line of code in app.component.ts to make the "scanner" variable accessible and the project builds successfully, otherwise ionic will complain that scanner is not defined and it will stop building the app:

    declare var scanner:any;

    This is the scanner variable that we used to import our cordova plugin, see: config.xml

  • Start the scanner by adding this line of code in the callback method 'this.platform.ready().then()' in app.component.ts:

    scanner won't be available untill the device is ready

    ``` scanner.startScanning()

    Other options and features: Scan fullscreen - scanner.startScanning() Scan in view - scanner.startScanning(0,4,100,50) Pause/Resume - scanner.togglePauseResume() Close - scanner.closeScanner() Flash - scanner.toggleFlash() Zoom - scanner.toggleZoom() ```