Summary: | getUserMedia fails with HOME SCREEN mode on iOS, navigator.mediaDevices are undefined | ||
---|---|---|---|
Product: | WebKit | Reporter: | MH <martin.hejral> |
Component: | WebRTC | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Major | CC: | adam, andrew, ben.browitt, gabriel, martin.hejral, rmja, szmydadam, webkit-unassigned, youennf |
Priority: | P2 | ||
Version: | Safari 11 | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 12 | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=220184 |
Description
MH
2017-12-07 15:34:58 PST
Additional info: apple-mobile-web-app-capable Sets whether a web application runs in full-screen mode. Syntax <meta name="apple-mobile-web-app-capable" content="yes"> Discussion If content is set to yes, the web application runs in full-screen mode; otherwise, it does not. The default behavior is to use Safari to display web content. You can determine whether a webpage is displayed in full-screen mode using the window.navigator.standalone read-only Boolean JavaScript property. https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html#//apple_ref/doc/uid/TP40008193-SW3 Hello, I confirm that this still is the case on iOS 11+. Newly iOS 12 got the same issue. Test case here: https://gigantic-sword.glitch.me/ This is clearly a big issue. Will be glad to help. (In reply to gabrielstuff from comment #2) > Hello, > I confirm that this still is the case on iOS 11+. Newly iOS 12 got the same issue. > > This is clearly a big issue. Will be glad to help. YES! Yes, still blocked on iOS12.1 in home-screen mode. It's a shame that this ability is still blocked and disabled for a REAL web app on iOS... I do not understand why... Apple is definitely disadvantaging iOS versus competitors... (In reply to gabrielstuff from comment #2) > This is clearly a big issue. Will be glad to help. ...the bug was directly reported to Apple repeatedly - the answer to my report was: DUPLICATE OF BUG xyz :)) https://bugreport.apple.com/web/?problemID=42564558 Please try to urge Apple directly too... it will definitely help if we get louder. I do not know... but maybe there is another way when our bugreports are ignored? The same issue (navigator.mediaDevices = undefined) is when using i.e. SFSafariViewController and having "in app" Safari experience. you can easily check that by opening link from Google Calendar app. It'll also give you navgiator.mediaDevices as undefined which breaks a lot of user-media related web pages. getUserMedia should now be supported everywhere for http/https with SecureContext |