flutter_qr_mobile_vision icon indicating copy to clipboard operation
flutter_qr_mobile_vision copied to clipboard

Scanning is not working on Android while upgrading to 4.0.1

Open lekhaiphtech opened this issue 2 years ago • 5 comments

When I upgraded to latest 4.0.1, scanning stops working on Android device and on iOS device its working fine. Scanning was working perfectly when I was using 3.0.1 version.

Attached log file Screenshot 2022-08-04 at 6 41 00 PM

lekhaiphtech avatar Aug 04 '22 13:08 lekhaiphtech

hmm interesting, thanks for the report. I might not have time to look into this until the weekend, so until then it might be worth staying on 3.0.0.

rmtmckenzie avatar Aug 04 '22 20:08 rmtmckenzie

I hacked a quick fix for this issue that can be seen here.

Just a case of moving where we close the image. There's a lot of image/frame 'close' handing logic in that class. Not sure whether all of it is now necessary, but left it alone and walked backwards slowly 😉

SoftWyer avatar Aug 06 '22 08:08 SoftWyer

I have the same issue, but only on devices running the Android 13. Like my Pixel 6 Pro.

aipok avatar Sep 15 '22 09:09 aipok

Sorry, I've been completely swamped. No promises but I'm going to try to look into this soon. And yeah the image/frame logic is somewhat atrocious haha

rmtmckenzie avatar Sep 21 '22 14:09 rmtmckenzie

same

hopheylalaley84 avatar Sep 23 '22 13:09 hopheylalaley84

Same here

SebAubin avatar Oct 03 '22 12:10 SebAubin

I have the same issue :<

SPMXithing avatar Nov 03 '22 16:11 SPMXithing

Same issue

SupunSSW avatar Nov 09 '22 19:11 SupunSSW

Same issue

TercyoStorck avatar Dec 07 '22 12:12 TercyoStorck

Same issue

diegodulval avatar Jan 12 '23 13:01 diegodulval

any update on this issue?

Starkm12 avatar Jan 16 '23 11:01 Starkm12

I hacked a quick fix for this issue that can be seen here.

Just a case of moving where we close the image. There's a lot of image/frame 'close' handing logic in that class. Not sure whether all of it is now necessary, but left it alone and walked backwards slowly 😉

@SoftWyer Not sure of the implications but for my specific use case (Xiaomi Redmi 8 and 9) it seems to work. Thank you!

I also had to add this to [email protected] build.gradle file to be able to build with your patch:

android {
    // ...
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    // ...
}

otherwise I would get an error: lambda expressions not supported at this language level

maganap avatar Jan 25 '23 07:01 maganap

We have the same issue on v4.0.1. I'm currently using the fork below as a workaround, but this is far from ideal. I hope this issue can be resolved in this library :)

  qr_mobile_vision:
    git:
      url: https://github.com/ADDInformatique/flutter_qr_mobile_vision
      ref: master

rvanderlinden avatar Feb 22 '23 09:02 rvanderlinden

Sorry for the ... long... delay on this. I'm putting on a version today which should fix that issue.

rmtmckenzie avatar Apr 05 '23 18:04 rmtmckenzie

I can confirm this issue has been resolved in v4.1.0 👍

Thank you @rmtmckenzie!

rvanderlinden avatar Apr 06 '23 13:04 rvanderlinden