juliansteenbakker / mobile_scanner

A universal scanner for Flutter based on MLKit. Uses CameraX on Android and AVFoundation on iOS.
BSD 3-Clause "New" or "Revised" License
825 stars 478 forks source link

onDetect gets called directly after granting permission in Chrome, even though there is no barcode in front of the camera #1113

Open saibotma opened 2 months ago

saibotma commented 2 months ago

Steps to reproduce:

Does not happen on iOS.

Tested on commit b3e5b58660dc78a9e527854fe209e44f32e20b38.

SeriousMonk commented 1 month ago

Same, even if permissions are already granted, every time the scanner is opened onDetect gets called.

Happens on web only, not on android or iOS.