Skip to Content
0

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

May 08 at 05:36 PM

34

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers