Skip to Content

Barcode scanning doesn't work in my app

Hi,

I'd like to add a barcode scanner in my app to filter a list of items. The list is working and I can display items from my ABAP backend. However the scan button in the filter bar doesn't work. I can filter the list using the search field but when I tap on the scanner icon nothing happens, the scanner view is not displayed. Another weird thing is the app navigates back to my previous screen (login screen) when I tap on the Cancel button in the filter bar. I guess it's supposed to navigate back to the list screen instead.

I followed the instructions in the following tutorial: https://www.sap.com/developer/tutorials/fiori-ios-scpms-barcode.html and the scanner view is displayed when I tap on the button in the sample app.

Any idea on how I could debug this?

Cheers,

Pierre

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 17, 2017 at 02:11 PM

    Hi,

    It works just fine now with SDK 2.0 and Xcode 9.1 so I'll mark it as answered.

    Cheers,

    Pierre

    Add comment
    10|10000 characters needed characters exceeded

  • May 23, 2017 at 08:03 AM

    Hi Pierre,

    Thanks for pointing this out! Initially, when I wrote the tutorial, I encountered the same issue you faced. In my case, it seemed there's a dependency in FUISearchController on the parent's navigation controller, which is not available before view is loaded. When I moved the initialisation of FUISearchController to viewDidLoad(), it then worked.

    However, I now encounter the same issue with the latest version for Xcode 8.3 (SDK 1.0 SP1 PL02).

    Let me look into it and let you know how to fix.

    Apologies for the inconvenience

    Add comment
    10|10000 characters needed characters exceeded