Skip to Content
0
Apr 18, 2019 at 08:55 AM

Cordova is undefined in SAP Fiori Client on mobile device

162 Views

Hello,

I have an android device with Android 9.0 (and one wit Android 5.1) and with SAP Fiori Client 1.12.1 from Google Play store installed and want to use SAP Personas to get a barcode in a SAP transaction as described in the workbook below. But on both devices my script failed because the line "if(cordova) {..." raises the exception "cordova is not defined". I googled a lot but did not find any solution. Does someone know what to do to solve this issue?

Any help would be really appreciated.

Best regards,

Mark

Workbook:

https://wiki.scn.sap.com/wiki/download/attachments/447447238/The%20Slipstream%20Engine%20Mobile%20Workbook.pdf?version=3&modificationDate=1538612495000≈i=v2

Script:

if (cordova) {
cordova.plugins.barcodeScanner.scan(scanSuccessCallback, scanErrorCallback);
} else {
session.utils.alert("Native API access not supported");

}