juliansteenbakker / mobile_scanner

A universal scanner for Flutter based on MLKit. Uses CameraX on Android and AVFoundation on iOS.
BSD 3-Clause "New" or "Revised" License
825 stars 478 forks source link

mobile_scanner doesn't work on web on apache server #288

Open bobosette opened 2 years ago

bobosette commented 2 years ago

Hi everybody. I'm running a web app with qrcode scanning functionality on an apache server and I notice that: mobile_scanner don't open the cam to scan

fabioknd commented 11 months ago

Are there any solutions now? I have the same problem.

Carricklie commented 7 months ago

Hello guys, does this one have any breakthrough?

This is the error i found

main.dart.js:5156 Uncaught MissingPluginException(No implementation found for method updateScanWindow on channel dev.steenbakker.mobile_scanner/scanner/method)

InsyAravinth commented 5 months ago

In my case, the scanner functioned on the localhost web server, however once it was published to Firebase, the scanner page was blank. Please help me to fix the problem.@juliansteenbakker image

Carricklie commented 5 months ago

Guys i think i have the solution to the Web Build, i use this build and it works : "flutter build web --profile --dart-define=Dart2jsOptimization=O0"

Carricklie commented 5 months ago

I think this because the regular build on flutter have removing and optimizing stuff that relates to the mobile scanner for web, so when I try to using this profile of web build it works. @juliansteenbakker