Skip to Content

How to use the barcode scanner (standalone)

May 13, 2017 at 07:20 PM


avatar image


I know how to use the barcode scanner embedded in a search bar but I have no idea how to use it standalone (i.e tap on a random button to start scanning a barcode, not necessarily to filter a list). The documentation mentions a ScannerFactory but I'm new to Swift and the SDK and I can't find a way to use it.

In the Fiori for iOS design guidelines, the scan view is supposed to be able to display an object cell to confirm the object that was scanned ( Is this behaviour supported in the current SDK or is this something that we have to implement or that will be added in the future?



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Florian Pfeffer
May 13, 2017 at 11:22 PM

Hello Pierre,

unfortunately the documentation is a little bit outdated at that place. The ScannerFactory is actually called FUIBarcodeScannerFactory. But also that class cannot be used, cause it is defined as internal (which allows just a usage in the module in which it was defined). The usage is only possible via controls which exposes the functionality (like e.g. a FUISearchBar).

Maybe it will be changed at a later point of time, so that the Barcode Scanner can be used standalone (w/o doing a hack). And hopefully the documentation will be fixed.

To use a barcode scanner independent of SAPs framework you can do an own barcode scanner implementation using the AVFoundation framework or you can check one of the free implementations (just a Google search or check the available barscode scanner Cocoapods packages).


Show 2 Share
10 |10000 characters needed characters left characters exceeded

Thanks Florian, I'll check the open source alternatives.



You're right, Florian. But we are definitely looking into opening the scanner implementation up and providing a Fiori compliant implementation of the barcode scanner for 'stand-alone' use in a future release