shaxxx / sunmi_barcode_plugin

Flutter plugin wrapper around Sunmi SDK for barcode scanners
MIT License
2 stars 9 forks source link

Scanner model unknown #1

Closed TheLinuxMafia closed 3 years ago

TheLinuxMafia commented 3 years ago

When i call page with your example, i get "Scanner model: Unknown", an in Debug Console i got this error: No implementation found for method getScannerModel on channel hr.integrator.flutter_sunmi_barcode_scanner

Do you think it's unsupported scanner ? Please let me know. Best Regards.

shaxxx commented 3 years ago

What model are you using? This plugin implements SDK for Sunmi HARDWARE scanner, you do have one do you? It's hard to tell, it's a bit odd that you get "No implementation found" error. You can't do much without logcat, open it in Android Studio and run example app to see the logs. Do you get "Connected to Sunmi scanner service" or do you get "Failed to connect to Sunmi scanner service" When you use barcode scanner to scan do you see any system intents fired up? You should get some kind of global system event.

Can you make complete unfiltered log with logcat (not just example app) and put it on pastebin?

Or simply use my other plugin that should work with all hardware scanners.

shaxxx commented 3 years ago

Any news?

Srini-B commented 3 years ago

@shaxxx Just wanted to ask will this support V2 device https://www.sunmi.com/en/V2/

shaxxx commented 3 years ago

Plugin supports Sunmi Print service on Android devices. If V2 uses same Android service it's already supported. I don't have V2 device to test it.