Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QR Scanner is unable to scan for Specific device. #452

Open
vaishali-dev opened this issue Jan 6, 2020 · 3 comments
Open

QR Scanner is unable to scan for Specific device. #452

vaishali-dev opened this issue Jan 6, 2020 · 3 comments

Comments

@vaishali-dev
Copy link

I've try QR scanner on many devices and it work without a problem, but when I tried it on another device, everything still runs fine except the QR scanner just won't recognise the QR Code although the camera is running and also there is a sufficient space in device.
For this device barcodeDetector.isOperational() is returning false. I tried with github ML-kit demo https://github.com/firebase/mlkit-material-android .

Device that couldn't recognise QR Code: one Plus 7
OS: Android 10

@agam-goyal
Copy link

I am also facing the issue on Android 10.0
Getting following issues
Barhopper: unsatisfied link error
Also, sec_untrusted_app

@artyomdeynega
Copy link

We've faced this on Samsung S20 Ultra (Android 10).
barcodeDetector.isOperational() returns false

@moradi-morteza
Copy link

according to this post in medium

The core barcode scanning functionality is a native library that the Mobile Vision API needs to download to the device (yuck). That is something we could work with, but it gets worse. The Mobile Vision library won’t even attempt to download the native library if the user’s device reports that it is “low” on memory. “Low” could mean that as much as 10% of the user’s storage space is still free. Just to rub salt in the wound, the library doesn’t provide good feedback to you the developer that this is happening. When I first ran the Mobile Vision sample app on a test device, I just saw a camera preview that did nothing.
Even if Google offered proper feedback when it can’t download the library, this approach presents another issue. The user experience is terrible. How do we tell a user that they can’t scan barcodes until they delete some of their data? Users typically expect that apps come bundled with the core functionality ready to go. If I were using an app that presented me with this information, I would just uninstall it.
Google does have an interesting method of making downloading the library viable. Google offers a manifest flag that tells Google Play Services to download the native library when a user installs your app. This means the library may be available before the user opens your app. Again, this won’t work if the device is “low” on storage space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants