@sapui5/sap.ndc 1.84.28 → 1.84.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/sap/ndc/.library
CHANGED
|
@@ -24,9 +24,10 @@ sap.ui.define([
|
|
|
24
24
|
'sap/m/Dialog',
|
|
25
25
|
"sap/ui/dom/includeStylesheet",
|
|
26
26
|
"./BarcodeScannerUIContainer",
|
|
27
|
-
"sap/m/MessageToast"
|
|
27
|
+
"sap/m/MessageToast",
|
|
28
|
+
'sap/ui/Device'
|
|
28
29
|
],
|
|
29
|
-
function(Log, JSONModel, ResourceModel, Input, Label, Button, Dialog, includeStylesheet, BarcodeScannerUIContainer, MessageToast) {
|
|
30
|
+
function(Log, JSONModel, ResourceModel, Input, Label, Button, Dialog, includeStylesheet, BarcodeScannerUIContainer, MessageToast, Device) {
|
|
30
31
|
"use strict";
|
|
31
32
|
|
|
32
33
|
/*global cordova*/
|
|
@@ -40,6 +41,7 @@ sap.ui.define([
|
|
|
40
41
|
|
|
41
42
|
/**
|
|
42
43
|
* @class
|
|
44
|
+
* Please refer to <a target="_blank" rel="noopener,noreferrer" href="https://launchpad.support.sap.com/#/notes/2402585">SAP Note 2402585</a> for information on barcode scanner support in native iOS and Android browsers.
|
|
43
45
|
*
|
|
44
46
|
* Here is an example of how to trigger the scan function of BarcodeScanner:
|
|
45
47
|
* <pre>
|
|
@@ -296,6 +298,11 @@ sap.ui.define([
|
|
|
296
298
|
.then(
|
|
297
299
|
function(stream) {
|
|
298
300
|
if (oZXingScannerAPI) {
|
|
301
|
+
// When decoding QR-code by iPhone (iOS 16), this stream will clash with another stream from ZXing-js.
|
|
302
|
+
if (Device.os.ios && Device.os.versionStr.split('.')[0] === '16') {
|
|
303
|
+
var videoTrack = stream.getTracks();
|
|
304
|
+
videoTrack[0].stop();
|
|
305
|
+
}
|
|
299
306
|
openBarcodeScannerDialogContains();
|
|
300
307
|
} else {
|
|
301
308
|
oScanDialog.getModel().setProperty("/isNoScanner", true);
|