gluonhq/attach

iOS Barcode scanning softlock

Opened this issue · 1 comments

Hello there,

When I am using the BarcodeService to scan a barcode on my iPhone 7 (iOS 15.7.3) scanning usually works just fine.

However, when I call BarcodeScanService.asyncScan(title, legent, resultText) and the camera is already perfectly aligned with the the barcode its supposed to scan. The view closes immediately again, without getting the view behind it back into focus.

It will remain "slightly zoomed out" and none of the buttons will really work. The only way to get it functional again is to swipe down as if I want to close the camera view manually. But this is not so great in terms of user experience, because the user has no way of knowing how to get out of that "mode" again.

Could you take a look and fix it?

Upon further inspection, this problem only occurs, when the legend parameter is NOT NULL

a call to BarcodeScanService.asyncScan(title, null, "") for example works without issue.