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
911 stars 524 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 5 months ago

saibotma commented 5 months ago

Steps to reproduce:

Does not happen on iOS.

Tested on commit b3e5b58660dc78a9e527854fe209e44f32e20b38.

SeriousMonk commented 4 months 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.