Skip to content

Commit 00b63ae

Browse files
added 11.6.1
1 parent d41ca36 commit 00b63ae

File tree

7 files changed

+32
-8
lines changed

7 files changed

+32
-8
lines changed

SimpleHTMLApp/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Acuant JavaScript Web SDK v11.6.0
1+
# Acuant JavaScript Web SDK v11.6.1
22

33
**March 2022**
44

SimpleHTMLApp/app/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,6 @@ <h3 id="acuant-modal-text"></h3>
531531
jpegQuality: 1.0 //strongly advised not to modify (can be left out will default to 1.0)
532532
}
533533
</script>
534-
535534
<script src="/webSdk/dist/AcuantJavascriptWebSdk.min.js" charset="utf-8"></script>
536535
<script async src="/webSdk/dist/AcuantCamera.min.js" charset="utf-8"></script>
537536
<script async src="/webSdk/dist/AcuantPassiveLiveness.min.js" charset="utf-8"></script>

SimpleHTMLApp/webSdk/dist/AcuantCamera.js

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -782,8 +782,8 @@ var AcuantCamera = (function () {
782782
onErrorCallback = errorCallback;
783783
}
784784

785-
if (cameraHasFailedBefore()) {
786-
errorCallback("Live capture has previously failed and was called again. User was sent to manual capture.", AcuantJavascriptWebSdk.REPEAT_FAIL_CODE);
785+
if (cameraHasFailedBefore() || isiOS15Plus() || isiPad13Plus()) {
786+
errorCallback("Live capture has previously failed and was called again or user is on an iOS device. User was sent to manual capture.", AcuantJavascriptWebSdk.REPEAT_FAIL_CODE);
787787
startManualCapture(manualCallback);
788788
return;
789789
}
@@ -1239,7 +1239,26 @@ var AcuantCamera = (function () {
12391239
function evaluateImage(imgData, width, height, capType, callback) {
12401240

12411241
let result = {};
1242-
let waitingOnTheOther = true;
1242+
let waitingOnTheOther = true;
1243+
1244+
// Avoid calling moire on IOS to decrease memory comsumption
1245+
if (isiOS15Plus() || isiPad13Plus()) {
1246+
AcuantJavascriptWebSdk.crop(imgData, width, height, {
1247+
onSuccess: function (response) {
1248+
result.cardtype = response.cardtype;
1249+
result.dpi = response.dpi;
1250+
result.image = response.image;
1251+
1252+
result.moire = -1;
1253+
result.moireraw = -1;
1254+
finishCrop(result, capType, callback);
1255+
},
1256+
onFail: function () {
1257+
callback();
1258+
}
1259+
});
1260+
return;
1261+
}
12431262

12441263
AcuantJavascriptWebSdk.moire(imgData, width, height, {
12451264
onSuccess: function (moire, moireraw) {
@@ -1291,7 +1310,13 @@ var AcuantCamera = (function () {
12911310
result.sharpness = sharpness;
12921311
result.glare = glare;
12931312
result.image.data = toBase64(result, capType);
1294-
signImage(result, callback);
1313+
1314+
// Avoid calling signImage on IOS to decrease memory comsumption
1315+
if ((isiOS15Plus() || isiPad13Plus())) {
1316+
callback(result);
1317+
} else {
1318+
signImage(result, callback);
1319+
}
12951320
},
12961321

12971322
onFail: function () {

SimpleHTMLApp/webSdk/dist/AcuantCamera.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
5 Bytes
Binary file not shown.

SimpleHTMLApp/webSdk/dist/AcuantJavascriptWebSdk.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
16 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)