GithubHelp home page GithubHelp logo

Comments (24)

tegozen avatar tegozen commented on May 14, 2024 8

use https pls

from react-qr-reader.

nikhilwadhawana avatar nikhilwadhawana commented on May 14, 2024 5

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.

RusinovAnton avatar RusinovAnton commented on May 14, 2024 2

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.

omidgfx avatar omidgfx commented on May 14, 2024 2

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.

Fikoun avatar Fikoun commented on May 14, 2024 1

You need to deploy with https or only test on localhost. Other options are disables due to security reasons.

from react-qr-reader.

Razorholt avatar Razorholt commented on May 14, 2024

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.

dylangarcia avatar dylangarcia commented on May 14, 2024

@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.

JodusNodus avatar JodusNodus commented on May 14, 2024

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.

webjunkie01 avatar webjunkie01 commented on May 14, 2024

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.

dylangarcia avatar dylangarcia commented on May 14, 2024

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.

kythanh avatar kythanh commented on May 14, 2024

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?

test scanner

from react-qr-reader.

JodusNodus avatar JodusNodus commented on May 14, 2024

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.

frinko avatar frinko commented on May 14, 2024

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.

JodusNodus avatar JodusNodus commented on May 14, 2024

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.

frinko avatar frinko commented on May 14, 2024

@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.
test

from react-qr-reader.

JodusNodus avatar JodusNodus commented on May 14, 2024

https://forums.developer.apple.com/thread/88052

from react-qr-reader.

rajtrivedi88 avatar rajtrivedi88 commented on May 14, 2024

@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.

massimopibiri avatar massimopibiri commented on May 14, 2024

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.

JSEvgeny avatar JSEvgeny commented on May 14, 2024

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.

massimopibiri avatar massimopibiri commented on May 14, 2024

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.

cnadolny2s avatar cnadolny2s commented on May 14, 2024

Problem still exists. Did anyone figure it out?

from react-qr-reader.

cnadolny2s avatar cnadolny2s commented on May 14, 2024

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.

Douglasacost avatar Douglasacost commented on May 14, 2024

I have the same issue, on my Cordova PWA is showing "broken play icon" but no camera recorder

from react-qr-reader.

cakesoft-nikhita avatar cakesoft-nikhita commented on May 14, 2024

@tegozen where to use https? Could you please tell me in detail?

from react-qr-reader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.