cancel
Showing results for 
Search instead for 
Did you mean: 

Barcode scanning doesn't work in my app

former_member321811
Participant

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member321811
Participant
0 Kudos

Hi,

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

Cheers,

Pierre

SAPAI
Participant
0 Kudos

HI Pierre,

could you please guide on the code changes you made for this issue as I am facing same issue with SDK2.0 and Xcode 9.1.

Please see my question at below link and suggest

Barcode Scanning Not working

Answers (1)

Answers (1)

Qualiture
Active Contributor
0 Kudos

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

former_member321811
Participant
0 Kudos

Hi Robin,

The sample app I created by following your tutorial works just fine (SP1 PL02). However it doesn't in my own app even though the FUISearchController is initialized in viewDidLoad().

Thanks for the tutorials!

Pierre

Qualiture
Active Contributor
0 Kudos

Hi Pierre,

That's strange... I have the exact opposite experience: in my case, it doesn't work in my tutorial app but it does work in a simple custom app I wrote

former_member321811
Participant
0 Kudos

Just to make sure we're on the same page: I'm talking about the following tutorial: https://www.sap.com/developer/tutorials/fiori-ios-scpms-barcode.html not the List Report Floorplan tutorial.

Pierre