Implementing the Huawei QR Scanner
Mobile devices manufactured by Huawei require a custom scanner to successfully scan QR codes. The capability is integrated into HYPR SDK for Android, so you just need to make the build.gradle
configuration changes described below in order to enable it from the top-level app.
Implementation
HYPR SDK for Android uses a device model check to determine if the HYPR-implemented Huawei QR Scanner should be used instead of the default Firebase scanner.
string manufacturer = android.os.Build.MANUFACTURER;
manufacturer.toLowerCase().equals("huawei"); // if true, use the Huawei QR Scanner