mikebuss / MTBBarcodeScanner

A lightweight, easy-to-use barcode scanning library for iOS 8+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Camera unfreeze is corrupting flash

LeLunZ opened this issue · comments

While using this package I got into a problem while using the flash.

steps to reproduce

  • activate flash
  • freeze camera (flash gets deactivated)
  • unfreeze camera after a short wait

What happens now?

The flash should be activated again. (its only flashing for a few milliseconds, then flash is getting deactivated)
Its in a weird state. When calling toogleFlash* again. The flash is still not active.
Then calling it again, activates the flash.

*here it seems like flash is active in code but not in the camera.

What should happen?

After reactivating the camera, the flash should go to its state before freezing camera.

Thanks @LeLunZ. What iOS version are you using and on what device model?

iOS 14.0.1, but also didn’t work in iOS 13.X
Some testing IPhone from our workplace.
I think something between 6s and 8.
Can check it the day after tomorrow.

Sorry for the delay @LeLunZ. I am not longer actively maintaining this library, but if anyone reading this has a solution and wants to submit a pull request I will merge it in. Apologies for the inconvenience.