Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ios

safari

I'm discovering quaggaJS, a very efficient barcode scanner which I'm implementing on my website. It's using the webcam to scan barcodes.

Is there any way to permanently allow the usage of the webcam on trusted sites with Safari (iOS).

As an example, visiting there demo site, will systematically ask permission to use camera.

I would like to make this choice permanent for visitors of my website.

like image 773
Sebastien D Avatar asked Feb 18 '18 00:02

Sebastien D


People also ask

How do I allow a website to use my Camera on Safari?

Open Safari Preferences. Navigate to Websites. Go to camera & mic tabs. Change access to Allow.

How do I enable Camera on Safari iOS?

On iOS 13 and up, you can also set the camera and microphone to be enabled by default: Go to Settings on your device. Scroll down and open Safari tab. Ensure Camera & Microphone are set to Allow.

How do I allow a website to access my iPhone Camera?

Step 1: Go to Settings > Privacy. Step 2: Tap on Camera to see which apps have access to it. You can allow or block apps using Camera from here.

Why is my Camera blocked on Safari?

If you're not able to turn on your microphone or camera and/or you're seeing a red cross next to your microphone and camera buttons in your bottom menu toolbar... it's likely that you haven't given your browser permission to access your microphone and camera.

How do I change my Camera settings on Safari?

To choose or switch your microphone or camera in Safari, you'll need to go into your webinar or meeting room. From there, click on the Camera icon that's just to the right of your URL address, and choose your microphone and camera from the dropdown menu.


2 Answers

This is solved from iOS 13 onwards. With any website open, tap the "AA" icon in the top-left. Then tap "Website Settings" which will enable you to set camera permissions to "Allow" instead of "Ask".

Clicking the "AA" label in iOS safari opens a panel which includes "Website Settings" enter image description here

Unfortunately this setting is not available before iOS 13.

like image 82
Daniel Elkington Avatar answered Sep 29 '22 20:09

Daniel Elkington


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.

like image 38
Pierre F Avatar answered Sep 29 '22 20:09

Pierre F