Use honeywell scanners CT40/CT45 in mobile app using Cordova framework

victortrejo
Giga Expert

I want to listen the event when an user press the scanner button in the honeywell scanners, this must be automatically without the user select anything in the mobile app, there is a code to listen this in angular using the following format
       scope.loadScanner = function () {
                try {
                    window.plugins.honeywell.listen(function (data) {
                        //alert('window.plugins.honeywell.listen data: '+data);
                        scope.processScanData(data);
                    },
                        function (error) {
                            //alert('window.plugins.honeywell.listen.error: '+error);
                            $toast.showShortTop('Scan ERROR: ' + error);
                        }
                    );
                } catch (e1) {
                    $toast.showShortTop('Scanner ERROR: ' + e1);
                    //alert('Scanner ERROR: ' + e1);
                }
            };
            scope.loadScanner();

 

This is using a script to create the honeywell element using this java library 
https://github.com/dorumrr/npmjs-cordova-honeywell-scanner-simplified/blob/f72f2d505b21a1cdb56755224...

 

The question is if we can use this in the mobile app by adding these additional libraries or compontents?

0 REPLIES 0