[Vuejs]-Vue JS external Android library interaction (Zebra)

0👍

The final solution involved adding

created() {
        window.addEventListener('keypress', this.inputCapture);
        this.registerForBarcodeScanResults(true);
        window.barcodeScanResult = this.barcodeScanResult;
    }

to the above code – apparently, there’s a disconnect between registering barcodeScanResult functions on Android and on Page and they have to be linked manually.
Once the scope is explicitly set – it works.

Leave a comment