cancel
Showing results for 
Search instead for 
Did you mean: 

How to use cordova plugins included in standard SAP Fiori Client?

Jsousa
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (0)