nisrulz / qreader

:white_square_button: [Android Library] Read QR codes using google's mobile vision api, but without the hassle
http://nisrulz.github.io/qreader
Apache License 2.0
371 stars 108 forks source link

Unable to see preview #78

Closed iAmAndroidDeveloper closed 3 years ago

iAmAndroidDeveloper commented 3 years ago

@nisrulz Unable to see camera preview in following device

device name: HUAWEI MATE 30 Pro 5G EMUI version: 11.0.0 android version: 10

Can you please check and resolved so we can upgrade and used library

nisrulz commented 3 years ago

This project is undergoing an update. The develop branch has the most updated code: https://github.com/nisrulz/qreader/tree/develop . You can checkout the module and try and validate against that.

Until the next release, I can't guarantee any stability. You will have to wait until the next stable release.

nisrulz commented 3 years ago

Also regarding your issue. It is a library that uses Google APIs to scan QRcode. Considering Huawei is banned from using Google APIs, I think this is why the library doesn't work for you.

My suggestion would be to use some other library that doesn't use Google Services to scan QRcodes.

iAmAndroidDeveloper commented 3 years ago

@nisrulz then should i used ml kit for same issue? is this work for me?

nisrulz commented 3 years ago

ML Kit also uses Google Services. It is part of Firebase. You need to use something that doesn't depend on Google Services.

iAmAndroidDeveloper commented 3 years ago

@nisrulz when I integrate ML Kit then i can see preview of camera on given device configuration