Navigator.mediaDevices.getUserMedia not working on iOS 12 Safari
As of iOS 12, navigator.mediaDevices.getUserMedia() is returning an error in Safari. To recreate this, open iPhone Web Inspector , then run this snippet in the console: var constraints = { audio: true, video: { width: 1280, height: 720 } }; navigator.mediaDevices.getUserMedia(constraints) .then(function() { console.log('getUserMedia completed successfully.'); }) .catch(function(error) { console.log(error.name + ": " + error.message); }); You'll see that this runs successfully in desktop browsers, and in iOS 11 Safari, but fails in iOS 12 Safari. NotAllowedError: The request is not allowed by