on 09-16-2014 4:15 PM
Hi Christian
I assume that the standard SAP Fiori Client itself is a Cordova project with different plugins from both Apache Cordova (e.g. org.apache.cordova.geolocation and SAP Kapsel (e.g. com.sap.mp.cordova.plugins.barcodescanner).
In order to make use of these plugins, either the Fiori Client (which you cannot customize in case you use this standard Fiori Client) or the Fiori Apps/Tiles need to call respective plugin methods.
There are already some Fiori apps which use the Barcode Scanner plugin (if it exists in the Fiori Client Cordova project).
So basically, if you want to scan with the new Barcode Scanner plugin, you need something like:
function scan() {
cordova.plugins.barcodeScanner.scan(scanSuccessCallback, scanErrorCallback);
}
function scanSuccessCallback(result) {
log(JSON.stringify(result));
}
function scanErrorCallback(error) {
alert("Scanning failed: " + JSON.stringify(error));
}
Please note that the Barcode Scanner plugin can also encode. For more information, see
Best regards
christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.