Tested on V1 machine.
cordova plugin add https://github.com/siwei0729/cordova-sunmi-inner-scanner.git
cordova plugin add https://github.com/siwei0729/cordova-sunmi-inner-scanner.git --nofetch
export class YourAppPage {
windowObj:any = window;
constructor() {}
scan(){
this.windowObj.SunmiScanner.scan()
.then((barcodeData) => {
console.log(barcodeData);
}).catch((e) => {
console.log(e);
});
}
}