Page 1 of 1

how to activate barcode scanner through javascript

Posted: Mon Apr 20, 2015 6:08 pm
by David wyatt

Hi,

Im trying to activate the barcode scanner through javascript and i cant find the right command.

Please help.


how to activate barcode scanner through javascript

Posted: Mon Apr 20, 2015 7:06 pm
by Emmz

nameOfBarcodeService.execute({});

Where "nameOfBarcodeService" is the name you assigned when you added the service to the screen...


how to activate barcode scanner through javascript

Posted: Tue Apr 21, 2015 12:57 am
by Yurii Orishchuk

David,

Here is two ways to run barcode scaner.

  1. Use Appery.io service.

    pre

    //Where "barcodeScanner1" is your barcode scanner service datasource on that page.
    barcodeScanner1.execute();

    /pre

  2. Use barcode plugin directly:

    pre

    BarcodeScanner.scan(function (result) {
    console.log("scaned");
    }, function (error) {
    console.log("error");
    }
    );

    /pre

    More info about this approach here: https://github.com/phonegap-build/Bar...

    Note: for these two ways you need to add "barcode scanner" to your app via "Create new" interface.

    Regards.


how to activate barcode scanner through javascript

Posted: Tue Apr 21, 2015 7:00 pm
by David wyatt

thanks guys


how to activate barcode scanner through javascript

Posted: Sun May 31, 2015 3:43 pm
by Argia

Hi, is there a way to do this with AngularJS/Bootstrap at the moment?

Thanks!


how to activate barcode scanner through javascript

Posted: Mon Jun 01, 2015 1:56 pm
by Alena Prykhodko

Hello,

There is no build-in barcode scanner for AngularJS/Bootstrap at the moment.