Added option to conditionally show cancellation alerts during detections
🎯 Summary
There're some inconsistencies on the way we show cancellation alerts on the SDK: for unattended processes we always show an alert before cancelling, but on the standard (step-by-step) process we never show it.
🤔 Type
-
✨ New feature -
🐛 Bug fix -
👷 Technical debt -
☢ ️ Breaking change (it breaks backward compatibility) -
📚 Requires a change in the docs
⚙ ️ Configuration
Related MRs:
-
🔗 https://gitlab.mobbeel.com/mobbscan/MobbScanSDK-iOS/-/merge_requests/190 -
🔗 https://gitlab.mobbeel.com/mobbscan/mobbscan_mobbfaceux-ios/-/merge_requests/13
TestFlight apps:
-
🔗 v2.28.15 (2026.1.21.1225) withisCancellationDialogEnabledset tofalse(the default) -
🔗 v2.28.15 (2026.1.21.1245) withisCancellationDialogEnabledset totrue
⚗ ️ Solution
Added the isCancellationDialogEnabled property to MSConfiguration so the user is in charge of deciding if an alert should or shouldn't be presented, and unified this behaviour on all processes.
-
🔗 JIRA: MSCAN-518
🔬 Tests
- Start a document detection with
isCancellationDialogEnabledset tofalse(the default), and ensure that no alert is show when canceled. - Start a facial detection with
isCancellationDialogEnabledset tofalse(the default), and ensure that no alert is show when canceled. - Start an unattended process with
isCancellationDialogEnabledset tofalse(the default), and ensure that no alert is show when canceled during the document detection. - Start an unattended process with
isCancellationDialogEnabledset tofalse(the default), and ensure that no alert is show when canceled during the facial detection. - Repeat the above setting
isCancellationDialogEnabledset totrueand ensure that an error alert is shown on every case.
🧐 Checklist:
- The code follow the project guidelines.
- The changes have been tested locally.
- The code has internal docs.
- Docs are updated (README, public docs, etc.)
- Some tests have been added to check that the changes work as expected (unit, integration or e2e tests ...)
- Unit tests are running without errors.
- Other dependant changes have already been merged.
- Changelog updated (if it applies)