Hi to all,
I'm trying to use barcode scanner included in SAP Fiori Client in simple Launchpad SAPUI5 app:
onScan: function () {
if (typeof cordova === 'undefined') {
sap.m.MessageToast.show("Cordova Barcode Scanning is not Supported!"); }
window.parent.cordova.plugins.barcodeScanner.scan(this.scanSuccessCallback,this.scanErrorCallback); },
scanSuccessCallback: function(result) { alert(result.text); },
scanErrorCallback: function(error) { navigator.notification.alert("Scanning failed: " + JSON.stringify(error)); }
Always return error. I have deployed the app in Launchpad like a static tile using url (/sap/bc/...). My app has been deployed from eclipse.
I have read some blogs but I don't find solution.
I hope you can help me.