cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

hi,

when i use this method:

sap.ndc.BarcodeScanner.scan, i got "Scaner is not available" int my fiori client..
please help

0 Likes

Accepted Solutions (0)

Answers (2)

Answers (2)

tridwip
Active Participant
0 Likes

Yes, I have tried it on iOS and it's working fine

tridwip
Active Participant
0 Likes

hI,

You can include this library: sap/ndc/BarcodeScanner

and then,

when you want to use the scanner: in that event:

onPress: function(oEvent) {
			sap.ndc.BarcodeScanner.scan(
				function(mResult) {
					alert("We got a bar code\n" +
						"Result: " + mResult.text + "\n" +
						"Format: " + mResult.format + "\n") ;
						"Cancelled: " + mResult.cancelled);
				},
				function(Error) {
					alert("Scanning failed: " + Error);
				}
			);
		}

Please let me know whether it works or not!

DK007
Active Participant
0 Likes

Hi,

Are you able to use scanner working through SAP Fiori Client iOS App?

I'm running into same issue where camera is not showing but instead popup window to enter just a normal web app.

Any suggestion is greatly appreciated.

Thanks

Dheeram