Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

navigator.mediaDevices.getUserMedia() not working iOS 11 standalone apps

Tags:

ios

ios11

webrtc

navigator.mediaDevices.getUserMedia() is not working iOS 11 standalone apps. Does work in Safari 11 browser page.

Is this intentional? temporary?

Also, I can't get Safari 11 web inspector (MacOS Sierra 10.12.6) to even recognize any standalone web apps running on iPhone 7 with IOS11. It does recognize standalone apps pre IOS 11 iPhones. Also try{}catch{} reveals that navigator.mediaDevices.getUserMedia() is not valid call from standalone app in iPhone 7 running iOS 11.

like image 350
Kerry Davis Avatar asked Sep 14 '25 10:09

Kerry Davis


1 Answers

In iOS 11, getUserMedia is only supported in Safari, not in UIWebView, WKWebView, SFSafariViewController, or web apps added to the home screen: https://forums.developer.apple.com/thread/88052

like image 127
dpogue Avatar answered Sep 16 '25 00:09

dpogue