Skip to Content

SAP Fiori for iOS SDK - Barcode Scanner NOT working

SDK 2.0 , Xcode 9.1


trying to implement the barcode functionality as mentioned in the opensap course for fiori for ios sdk(CourseLink) but barcode scanner is not opening with button touch. Camera Scanner view does not open up.

Privacy permission assigned and also debug in console log shows camera is authorized.

I can filter the list using the search field with text but when I tap on the scanner icon nothing happens, the scanner view is not displayed.

Issue is same as asked by Barcode Scanning Not working but does not work for me.

Please suggest how to debug or fix it.

Console Log:

2017-12-05 15:04:54.322683-0500 hehe[34026:6147789] [general] # SAP.Fiori.Search.FUISearchBar - DEBUG - (Main) - FUISearchBar.swift.isCameraAvailable() - use camera is authorized

2017-12-05 15:05:37.401076-0500 hehe[34026:6147789] [general] # SAP.Fiori.Search.FUISearchController - INFO - (Main) - FUISearchController.swift.searchBarBookmarkButtonClicked - open barcode scanner

2017-12-05 15:05:37.551127-0500 hehe[34026:6147789] [general] # SAP.Fiori.BarcodeScanner.FUIBarcodeScanViewController - DEBUG - (Main) - FUIBarcodeScanViewController.swift.checkCameraAvailable() - use camera is authorized

View did load has code:

Add a comment
10|10000 characters needed characters exceeded

  • Hello experts,

    please provide any inputs.


  • Hi Asif,

    There is not enough info here. Could you send your project here?

    I have a simple test view controller and the scan view did show up when the scan icon is tapped.

    import UIKit
    import SAPFiori
    class CustomerSearchViewController: UIViewController, UISearchResultsUpdating {
        @IBOutlet var searchBarContainer: UIView!
        var searchController: FUISearchController!
        var productSearchBar: FUISearchBar!
        override func viewDidLoad() {
            searchBarContainer = UIView(frame: view.frame)
        func configureSearchBar() {
            searchController = FUISearchController()
            searchController.hidesNavigationBarDuringPresentation = true
            searchController.searchResultsUpdater = self
            productSearchBar = searchController.searchBar
            self.productSearchBar.isBarcodeScannerEnabled = true
        func updateSearchResults(for searchController: UISearchController) {
            print("search result")

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.