EdwardvanRaak / MaterialBarcodeScanner

Easy to use barcode reader for your Android Project (Uses Google Mobile Vision API)
Apache License 2.0
273 stars 112 forks source link

Scanner returns value twice on first scan #28

Open ngjustin opened 8 years ago

ngjustin commented 8 years ago

After granting permissions to use the camera, the first scan returns the result two times. After that first scan, scans return results a single time as normally expected.

cinohub commented 7 years ago

I got same issue. Have u found out the solution ?

fasanchez87 commented 6 years ago

Hello,

There is a scenario of your library, when the permissions are approved initially and I accept to approve the camera permission, then I will read the QR and the reader reads me twice, sometimes reads up times, if you want you can try this:

  1. Install the App
  2. Create a read log in the onResult () method
  3. Accept the permission of the camera
  4. You can see the Log and read two or more times, this has me with many problems because I trigger an activity, then I run the activity twice

What is this error?

regards