fast_barcode_scanner
fast_barcode_scanner copied to clipboard
iOS pause / resume detector
Hey me again lol
I'm using continuous scanning, but when the barcode is not known, I'm pushing a new screen to register the product. So I want to pause the detection while the screen is on top of the scanner.
So I'm using await CameraController.instance.resumeDetector(); and await CameraController.instance.pauseDetector();
No issues on Android, but on iOS the detection is not paused at all.
You are using the continuous mode, I guess? If so, you are right and I'll fix this
Edit: Pushed 1.1.4 to fix this
Thanks @jhoogstraat ! But now I have another issue ^^ it's that resumeDetector doesn't restart camera preview or detection at all on iOS.
PS: On Android the preview stays black after granting the permissions, but after a restart it all works well.
After some digging that's not really what happen, I commented the pause and resume, and in fact the camera preview freezes anyway when it goes of screen and never starts again. :(
Hey @jhoogstraat any idea what could go wrong?
Little reminder on this one, we still have pretty annoying freeze or crash when we leave the stream and go back to it. Which make the scanner totally unusable on iOS
Same issue with version 1.1.4 in iOS.