treeder / jsqr_flutter

jsqr wrapper and widget for flutter web
Other
13 stars 12 forks source link

JSQR on flutter web on iOS Safari #7

Open MyVenueGit opened 2 years ago

MyVenueGit commented 2 years ago

JSQR is unable to load or taking a long time (about 5 seconds or more) to load when build flutter project for web and open the deployed web on iOS devices. Working good on Android devices.

treeder commented 2 years ago

We're using it on web devices and don't have the issue. You sure it's jsqr that's taking a while to load?

MyVenueGit commented 2 years ago

Thanks for your response. I'm pretty sure it is JSQR. Here are the step I did:

  1. I created a new counter template flutter project.
  2. I add jsqr (jsqr: ^0.1.1) and assign the action ShowDialog as in example to the counter button.
  3. I build release for web and deploy the website to firebase hosting
  4. I open the web app on several iOS devices. There will be 2 main problems when I try to press the button on the website:
    • The jsqr window becomes gray, sometime it loads and shows the cam feed, some time it doesn't. The cam feed will be shown in a short duration when I try to close the dialog or showing good when we switch tab then back or swipe up Safari to go to home screen then open Safari again.
    • When the cam feed is shown, the frame is not correct to the size of the Container.

I tried debug but found no good info. I tried jsqr pure js demo on iphone, all working good.

Not so sure if this helps. Thanks.