The component is not intended for use with a mobile device's native barcode scanning. It is an alternative for browsers and for scanners that generate virtual keystrokes.
When using the native scanner in the app, attach the Scan Barcode action to a button, and supply something in the context property that tells your session event how to process the data or to where to forward it. Including a message handler name and unique ID for forwarding is common.