AmolGangadhare / flutter_barcode_scanner

Barcode scanner plugin for flutter. Supports barcode scanning for Android and iOS

Home Page:https://pub.dev/packages/flutter_barcode_scanner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the app stop in permissions screen on devices without camera.

th1m0r opened this issue · comments

Describe the bug
I use the package in smartphones, all the devices has camera. But when i put the app on barcode scanner terminal https://www.amazon.sg/Terminal-Quad-core-Computer-Business-Warehouse/dp/B0986ZW7WN
the app open and stop in permissions screen and stay there. Even i denied camera permissions, it always stop there.

To Reproduce
Steps to reproduce the behavior:

  1. run flutter create myapp --platform android
  2. put flutter_barcode_scanner on pubspec
  3. run app
  4. See bug

Expected behavior
That the application works on devices without a camera. The package will check if device has camera and do not add permissions or activate the camera. So a single app would run on every device.

Screenshots
20230118_111831
20230118_111919
20230118_111905
20230118_111845

Smartphone (please complete the following information):

  • Device: UROVO ET28
  • OS: Android 8.1.0
  • Browser stock
  • Version n/a

Additional context

I have this issue as well. Just wondering if there is a way to make this work with the current version.