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

can not scan #30

Open
xzghx opened this issue Mar 23, 2023 · 7 comments
Open

can not scan #30

xzghx opened this issue Mar 23, 2023 · 7 comments
Assignees

Comments

@xzghx
Copy link

xzghx commented Mar 23, 2023

Hi,
I want to scan some qrCode in android, I get these messages in console and scanner is not returning anything .
I tried on android 4 and 12

W/DynamiteModule(30647): Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.
I/DynamiteModule(30647): Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0

I'm calling barcode scanner like this:

 ElevatedButton(
                                onPressed: () async {
                                  var res = await Navigator.push(
                                      context,
                                      MaterialPageRoute(
                                        builder: (context) =>
                                            const SimpleBarcodeScannerPage(
                                              scanType: ScanType.qr,
                                            ),
                                      ));
                                  setState(() {
                                    if (res is String) {
                                      _serialNumber = res;
                                    }
                                  });
                                },
                                child: Text('scan')),
@CodingWithTashi
Copy link
Owner

should work @xzghx , will check and update, can you post what kind of qr you are scanning, if possible attach the qrcode as well

@xzghx
Copy link
Author

xzghx commented Mar 28, 2023

Sure, this is my sample qr :
qr

@iulianxpopa
Copy link

@xzghx did you solve the problem?

@xzghx
Copy link
Author

xzghx commented Apr 19, 2023

@iulianxpopa no I couldn't scan the code.

@CodingWithTashi
Copy link
Owner

@iulianxpopa and @xzghx
I have tested with below code in android 10 and It is working fine (GIF below).

 ElevatedButton(
              onPressed: () async {
                var res = await Navigator.push(
                    context,
                    MaterialPageRoute(
                      builder: (context) => const SimpleBarcodeScannerPage(
                        scanType: ScanType.qr,
                      ),
                    ));
                setState(() {
                  if (res is String) {
                    result = res;
                  }
                });
              },
              child: const Text('Open qr scanner'),
            ),

Please share us the detail with android/ios version you are testing

@CodingWithTashi CodingWithTashi self-assigned this Apr 23, 2023
@xzghx
Copy link
Author

xzghx commented Apr 27, 2023

@CodingWithTashi
this is some more logs

W/DynamiteModule(15981): Local module descriptor class for com.google.android.gms.vision.barcode not found.
I/DynamiteModule(15981): Considering local module com.google.android.gms.vision.barcode:0 and remote module com.google.android.gms.vision.barcode:0
E/Vision  (15981): Error loading optional module com.google.android.gms.vision.barcode: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
W/DynamiteModule(15981): Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.
I/DynamiteModule(15981): Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0
W/DynamiteModule(15981): Local module descriptor class for com.google.android.gms.vision.barcode not found.

@tomlumachain
Copy link

@xzghx
Try checking Google Play Services is installed (install Google Play Store if not)

Google Play Services include Mobile Vision API which is required for com.google.android.gms.vision.barcode

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