code-kotis / qr-code-scanner

📠 A simple, fast and useful progressive web application
https://qrcodescan.in
MIT License
1.05k stars 291 forks source link

iOS WebView workaround not working #78

Closed mfulton26 closed 4 years ago

mfulton26 commented 4 years ago

I see that for iOS I can take a video or photo using the camera as the live user media stream is not available in Chrome for iOS nor in the PWA one added to the home screen from Safari. This seems like a good workaround but I cannot get it to work with a static video or photo.

e.g. I tested on an apple juice bottle with a smartlabel QR code:

http://smartlabel.coca-colaproductfacts.com/servlet.MinuteMaid-JuicesToGoAppleJuice-1PK-1000-oz-Label-PET-Bottle-025000056765.html

image

gokulkrishh commented 4 years ago

@mfulton26 Yes. Seems like its a bug. I am also not able to make it work. I will try it. Thanks for reporting

gokulkrishh commented 4 years ago

@mfulton26 Hi, Just wanted to let you know in IOS 13.4 verision, webkit webview (ADD to home screen) allows camera API. It works.

GIF:

ezgif-3-d79e698710d2

Thus closing this issue. Feel free to re-open.

mfulton26 commented 4 years ago

that must be new, thank you