fast_barcode_scanner icon indicating copy to clipboard operation
fast_barcode_scanner copied to clipboard

iOS pause / resume detector

Open jaumard opened this issue 3 years ago • 6 comments

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.

jaumard avatar Oct 20 '21 13:10 jaumard

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

jhoogstraat avatar Oct 23 '21 09:10 jhoogstraat

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.

jaumard avatar Jun 17 '22 09:06 jaumard

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. :(

jaumard avatar Jun 17 '22 09:06 jaumard

Hey @jhoogstraat any idea what could go wrong?

jaumard avatar Jun 30 '22 12:06 jaumard

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

jaumard avatar Aug 04 '22 07:08 jaumard

Same issue with version 1.1.4 in iOS.

ikicodedev avatar Jun 27 '23 07:06 ikicodedev