How to Permanently Allow Usage of Camera on Trusted Websites with iOS - Safari

How to permanently allow usage of camera on trusted websites with iOS - Safari

Unfortunately, it seems there is no way to permanently grant a website access to the iPhone camera within Safari (yet).

iOS 11 added the option to completely disable camera & microphone access in the Safari privacy & security settings. Having the camera & microphone access enabled for Safari, however, only means that Safari will ask the user for their permission when a website requests access to the user media.

Unfortunately, as of iOS 11.3, no further website-specific settings are available, so your users would have to confirm their permission every time camera access is needed on your website.

I'd like to reference the corresponding Apple Support page, but this question doesn't seem to be addressed there yet.

IOS 11 Safari remember Camera Permission

It's now possible with IOS 13 and iPadOS 13 to save permission settings in Safari.

Accessing the camera in iOS Safari on an iPhone

I posted this question on other services and eventually received a response a user named Ravavyr through a separate Discord channel. The response pointed me to this article which provided an answer.

https://leemartin.dev/hello-webrtc-on-safari-11-e8bcb5335295

It appears that iOS Safari needs some more configuration to make it work.

The CodePen linked from the original post has been updated to include the changes that make it work.

// Fix for iOS Safari from https://leemartin.dev/hello-webrtc-on-safari-11-e8bcb5335295
video.setAttribute('autoplay', '');
video.setAttribute('muted', '');
video.setAttribute('playsinline', '')

I hope this helps future readers.

Is there a way to disable permissions prompt in Safari for Jitsi meet?

It seems there's no way to programatically set a flag/property/attribute to allow a website to access to mic & cam in Safari.

According to this answer the user on iOS 13 now has the ability to set it for a particular webpage via the accesibility menu (aA button) and for desktop, this option must be defined in the Safari preferences.



Related Topics



Leave a reply



Submit