Integrating peripheral devices
You can set up integration between Sterling Store Engagement and peripheral devices such as bar code scanners.
Need for integration with peripheral devices
Most of the store operations involve scanning bar codes for products, location and so on. Additionally, Sterling Store Engagement interacts with payment devices, respond to notifications, and so on. Therefore, it is necessary that Sterling Store Engagement responds to events from external devices/services such as scanners.
Solution
Only applications that are native to a device or a platform can communicate directly with peripheral devices such as bar code scanners. However, hybrid applications make it possible to embed standard web applications inside a native container so that they can communicate with external devices. Therefore, we can embed the Sterling Store Engagement inside a native wrapper application using hybrid technology.
Supporting features in the application
- BarcodeScannerService service. Provides a utility method called
placeBarcodeToElementto pass the bar code data to the application screens. - BarcodeScannerDirective directive. Is used as an attribute to the input field for listening to bar code scanner events. Refer JavaScript documentation for more information.
- CordovaService service. Provides a utility method called
registerPluginInitializationto register the plugin initialization code.