wildabeast / BarcodeScanner

Official repository now at [phonegap/phonegap-plugin-barcodescanner](http://github.com/phonegap/phonegap-plugin-barcodescanner).
966 stars 739 forks source link

Systematic freeze on IOs #329

Open lantenac opened 8 years ago

lantenac commented 8 years ago

Environment : iphone : phonegap-plugin-barcodescanner 5.0.0 ios : 9.3.2

Failure scenario :

  1. I tap for launching the scan I bound on a button,
  2. I re-tap the button before the scan get launched,
  3. The scanner interface is displayed but frozen. I can exit though.

Remark : if i don't "double tap", scan is ok. It seems there is a concurrent access to the camera/video stream which is not properly handled.

Does anyone have a fix ?

Thanks a lot for your help.

Dorian.

ryanc35 commented 8 years ago

Hi Dorian,

You can try all the lines that include "didAppear" which I made from a fork of the current cordova-plugin-barcodescanner repository that solved the same issue for me. https://github.com/ryanc35/cordova-barcodescanner-plugin/commit/1ca5684f812fbc149d8bc1b486882ecc36b8bef7

Regards, Ryan