Comments (24)
use https pls
from react-qr-reader.
hello @JodusNodus ,
i am creating PWA in React Js.
react-qr-reader package is working perfectly in my iPad (Safari Browser) & Android (Chrome Browser).
but, it's not working while i am running into custom Web view of IOS or Android Tabs or phone.
it's giving me same Error NoVideoInputDevicesError: No video input devices found.
from react-qr-reader.
Device: iPhone 7
OS: iOS 11.4.1
Browser: PWA opened with Safari from homescreen
Getting "NoVideoInputDevicesError" when trying to access the camera with react-qr-reader
:(
from react-qr-reader.
Solution:
You have to use HTTPS 🥳
Read more about using https in development mode:
https://create-react-app.dev/docs/using-https-in-development/
from react-qr-reader.
You need to deploy with https or only test on localhost. Other options are disables due to security reasons.
from react-qr-reader.
Upgrade to iOS 11.2 it should fix that issue. I'm on iOS 11.3 (beta 3) and so far so good!
from react-qr-reader.
@Razorholt I'll do that - thanks. I refreshed/reloaded my tab and it seemed to have fixed it which was incredibly strange.
from react-qr-reader.
Yeah the differences in allowed constraints on IOS really grinds my gears. They seem to change the workings every release. Let me know if upgrading solves it.
from react-qr-reader.
I also experience this issue because my iPhone was not up to date. But adding the openImageDialog method as a fallback is a good option.
from react-qr-reader.
Is there any version is known to work with iOS 10? I want to see if I can provide options for the user.
from react-qr-reader.
I am having issue when trying https://thomasbilliet.com/react-qr-reader on Safari on iPhone 6 with iOS 11.2.6.
@JodusNodus do you know if the scanner working on iOS 11.2.6?
from react-qr-reader.
The major problem here is that i am a student and have no direct access to an iphone for testing. So saddly i can't debug these cases whenever i want.
from react-qr-reader.
If I remember correctly, iOS does not expose the ImageCapture API to their WebView components (e.g. Chrome for iOS, etc.)
from react-qr-reader.
Yeah @frinko i have never tested that out. For everyone with a problem: Please use the master branch as the ios11-fix
branch is outdated. Then you can post the error if you have one here. Maybe i'll be able to figure something out.
from react-qr-reader.
@kythanh, I know that your screenshot is opened up inside of Safari, but I also think that this is considered a custom view with Safari, since it was launched from Slack - but I could totally be wrong with that - and custom views are not supported with iOS's Safari - only native views. I just tried on my iPhone 6 (11.2.6) - same site - and it seems to work for me.
from react-qr-reader.
https://forums.developer.apple.com/thread/88052
from react-qr-reader.
@webjunkie01 You said "adding the openImageDialog method as a fallback is a good option" but how does capturing the image scan the qr code..can you please reply?
@JodusNodus Do you have any idea on this?
from react-qr-reader.
Hi guys.My application works perfectly on web. But when I edit the app for the store with pwabuilder.com it throws NoVideoInputDevicesError and a white screen. It seems apple doesn't allow access to the web view from an application compiled with Cordova (used by pwabuilder). Am I right about it? Did somebody solved this problem? any suggestion?
thanks
from react-qr-reader.
I have the same issue as @massimopibiri. When I save web page to "home screen" as pwa web app on iOS (IPhone XS) QR reader stop working. Any ideas why it happens? PS. works fine with Safary on the same phone.
from react-qr-reader.
I solved it. The problem didn't have anything to do with the package. It was a difference between browsers and their interaction with CSS. So just a misunderstanding.
from react-qr-reader.
Problem still exists. Did anyone figure it out?
from react-qr-reader.
I found out something regarding iOS 12.2 and PWA:
Same bugs and disabled features as in previous versions: no access to Camera within a standalone PWA, no full support of Web App Manifest, no installation API, ghost windows, and no default launch image.
https://medium.com/@firt/whats-new-on-ios-12-2-for-progressive-web-apps-75c348f8e945
-> "No access to Camera within a standalone PWA"
from react-qr-reader.
I have the same issue, on my Cordova PWA is showing "broken play icon" but no camera recorder
from react-qr-reader.
@tegozen where to use https? Could you please tell me in detail?
from react-qr-reader.
Related Issues (20)
- How to set up react-qr-reader to show scan window in iPhone? HOT 2
- We've got a 404 !!! (On preview page) HOT 3
- Blob is not defined HOT 1
- Not working on android google chrome HOT 1
- unable to resolve dependency tree HOT 5
- 'QrReader' is declared but its value is never read.
- i would like to know if it qr-reader supports accessibility features. Specifically, I am looking for support for screen readers, keyboard navigation, and high-contrast mode. Can you please let me know if your qr-reader has these features, and if there are any other accessibility features that you support? HOT 1
- cant use this library in [email protected] HOT 12
- Camera does not focus HOT 1
- Breaks with React.StrictMode
- Camera does not capture QR on iOS HOT 6
- MediaDevices API has no support for your browser. You can fix this by running "npm i webrtc-adapter" HOT 2
- Last version can scan with image ?
- The height and width of the video does not match the height and width video on the device. HOT 1
- Support for defaultProps will be removed
- Help me error selectBestPatterns nobody fix it before (react-qr-reader 3.0.0-beta-1) HOT 3
- DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source width is 0. HOT 4
- Black screen and rarely get back camera view HOT 3
- Scan address camera resizes sometimes in mobile devices
- Node version Incompatibilty
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-qr-reader.