question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working in WKWebView/iOS 11 (e.g. Chrome)

See original GitHub issue

Since this library relies on navigator.mediaDevices.getUserMedia and mediaDevices is null in WKWebView browsers, things break.

Notably, Safari is working fine.

It seems to be an Apple Issue and probably nothing can be done here. But I think it should be logged anyhow.

Regards, Drew

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
werthdavidcommented, Apr 16, 2018

That’s correct unfortunately. Copied from zxing-js/ngx-scanner#Limitations:

  • On iOS-Devices camera access works only in native Safari and not in other Browsers (Chrome,…) or Apps that use an UIWebView or WKWebView. This is not a restriction of this component but of the limited WebRTC support by Apple. The behavior might change in iOS 11.3 (Apr 2018?, not tested) as stated here
Read more comments on GitHub >

github_iconTop Results From Across the Web

WKWebView not support some web-pages in iOS
I have a very simple web-view browser in my app, that works great except some sites. For example ...
Read more >
iOS 11.3: WKWebView cookie synchronizing stopped working
Working on an app with web content, we switched fro UIWebView to WKWebView after iOS 11. We use URLSession for authentication, then webviews...
Read more >
739390 - WKWebView loads much slower if it's not a part of ...
On iOS 11 WKWebView loads much slower if it is not a part of the view hierarchy. The purpose of this issue is...
Read more >
208667 – getUserMedia does not work in WKWebView-based ...
getUserMedia does not work in iOS WKWebView-based browsers like Chrome, Firefox, ... Modern hybrid apps e.g. Cordova use a custom scheme to serve...
Read more >
JavaScript Manipulation on iOS Using WebKit | Capital One
JavaScript that includes these message handler functions wouldn't compile if it's loaded in anything but a WKWebView object (you can try loading it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found