Steps to reproduce:
1) Go to https://qrsnapper.appspot.com in Safari.
2) Grant camera access and see a live picture.
3) Add https://qrsnapper.appspot.com to the home screen.
4) Launch the app from the home screen and notice how getUserMedia is not supported.
This also affects more prominent apps like https://ofo.ride.com/, a ride sharing app featured at Google i/o.
Sorry, wrong URL, try https://ride.ofo.com/#/scancode instead.
Also reported in https://bugs.webkit.org/show_bug.cgi?id=185448.
This also was an issue with Stance's self checkout PWA: https://go.stance.com/
Consumer's could not scan product bar codes once the app was added to the home screen.
This is also causing problems for https://vision.bloomberg.com. WebApp is un-usable as a full screen PWA.
I can confirm this.
Q1: Is there any information why the PWA WebKit was crippled to not support getUserMedia (which the standard WebKit supports), and if this behaviour is intended and going to stay?
Q2: Also, could somebody provide a link to the official documentation (I didn't find any) that documents this behaviour, so that PWA developers don't fall into that trap?
I also had problems with https://qrsnapper.com/
This is likely similar to:
- this bug on chromium tracker: https://bugs.chromium.org/p/chromium/issues/detail?id=752458
- this bug tracking an issue submitted to Apple: http://www.openradar.me/33571214
- this discussion on Apple developer forum: https://forums.developer.apple.com/thread/88052
+1 -- highly desirable to improve the quality of homescreen PWAs.
Access to phone camera in particular is very high priority: works in Safari, works on Android, why doesn't it work on an iOS homescreen PWA?
+1 Would be great to have this
+1 It will be fantastic to have this.
+1 I have an Angular SPA that needs the microphone for transcription services. It's a shame it works fine in Safari as a web page but won't work from the home screen as a PWA. That seems totally backwards to me.
(In reply to dirkk0 from comment #6)
> I can confirm this.
> Q1: Is there any information why the PWA WebKit was crippled to not support
> getUserMedia (which the standard WebKit supports), and if this behaviour is
> intended and going to stay?
This is a known limitation of WKWebView that we want to fix.
I could not believe it when I read it! Are you planing support for getUserMedia in WKWebView ? If so, do you have a schedule to share ?
Can we help ?
Thanks a lot,
Please not that this has been there since 2 years :
Thanks for any infos.
We need it for our app. We need this feature for scanning barcodes, but it is not available in Safari on iOS.
I can confirm this is now working on iOS 13 beta 1!
Thanks, team WebKit from team Chromium: https://twitter.com/ChromiumDev/status/1136541745158791168. 🎉