capacitor-community / barcode-scanner

A fast and efficient (QR) barcode scanner for Capacitor
MIT License
437 stars 172 forks source link

No way to cancel barcode scan #159

Closed brian-g closed 2 years ago

brian-g commented 2 years ago

Describe the bug In the current implementation, there is no way to cancel the scan of the barcode on iOS (not sure if this affects Android). This is an issue because a user may inadvertently initiate a barcode scan and then not have a barcode to scan that would dismiss the interface.

Expected behavior I expect there is a way to cancel the operation.

Version 2.1.1

Desktop (please complete the following information):

Smartphone (please complete the following information):

thegnuu commented 2 years ago

There is a stopScan function which will stop the current scanning process...

CT-SmartWaterPlanet commented 1 year ago

The stopScan btn needs to be configured, which is unclear how to do it.

On the other hand, when I cancel the scan or finish it, the camera is still active as in the background. how can i solve that?