Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website cannot detect camera being blocked in Settings #42

Open
mackonsti opened this issue Jul 22, 2021 · 6 comments
Open

Website cannot detect camera being blocked in Settings #42

mackonsti opened this issue Jul 22, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@mackonsti
Copy link
Contributor

Hello @marvinsxtr thank you for your great work for all Apple Wallet users out there.

I am running iOS 14.6 and when I launched http://covidpass.marvinsextro.de/ on Safari, the camera could not be activated.

As far as I can remember, I had never set the camera as "inaccessible" from Settings -> Safari -> Settings for Websites -> Camera, so I was wondering if your code of your website could possibly detect the camera being denied access, via some Web API, and show a warning pop-up such as "Safari could not access your camera, please change the permissions in Settings".

Is this possible for websites to get that information from Safari?

Thank you!

@marvinsxtr marvinsxtr added the enhancement New feature or request label Jul 22, 2021
@joelbladt
Copy link

Hello @mackonsti ,

I am running iOS 14.6 too and cannot reproduce. Do you have some more informations? In example Safari Version, iPhone Model name?

I am using a iPhone 6s with iOS 14.6 and the Safari Version 14.1.1

Has you added the website to your Home screen? Opened the correct URL? https://covidpass.marvinsextro.de

You can check your Browser Version on this URL https://www.whatsmybrowser.org - For the full Browser Version scroll down to "Your full user agent string is:"

Browser Version of Safari

Thank you!

@mackonsti
Copy link
Contributor Author

Hi @joelbladt I am only referring to iOS. Just tried on my iPhone 8 and 11 again, iOS 14.x and the website cannot detect that the camera is not allowed access by Safari in the phone's Preferences > Safari > Camera

When I tap on the button "Start Camera" of the website http://covidpass.marvinsextro.de/ ( obviously 😄 ) nothing happens.

It seems that for a clean iOS installation, the setting in Preferences > Safari > Camera > Do Not Allow by default.

@marvinsxtr understood this is a feature request and that is why I suggested in Issue #30 to mention on the top to people to remember allowing camera access, too... Danke!

@marvinsxtr
Copy link
Member

@mackonsti I will try to add an error message for this but at least for me, Safari asked for camera access with a pop up window.

@mackonsti
Copy link
Contributor Author

mackonsti commented Jul 24, 2021

Hi @marvinsxtr yes it does when you set Preferences -> Safari -> Camera = Ask ; what are your current phone settings, please?

But if you set the option to "Do Not Allow" which is I think by default now, there's no pop-up or warning (yet). That is to what I am referring to; many thanks!

@marvinsxtr
Copy link
Member

@mackonsti Just tried to implement this but didn't manage to get it to work. Safari seems to block it silently. Help from others is appreciated.

@mackonsti
Copy link
Contributor Author

mackonsti commented Jul 25, 2021

Sorry @marvinsxtr to have added some more headache to you 😄

Instead of trying to detect this, allow me to suggest again to make a much easier fix and update the text (in the languages that you manage e.g. EN/DE) of the website?

Add your EU Digital COVID Certificates to your favorite wallet apps. On iOS, please use the Safari Browser.

to:

Add your EU Digital COVID Certificates to your favorite wallet apps. On iOS, please use the Safari Browser and remember to allow Safari to access the camera (in Settings → Safari → Camera) first.

I do not insist on that; just that people may not even think that the camera is blocked as there's no popup or anything on your web app, and it's a shame to not have your app used by people due to this simple security setting... Not everyone knows all the iOS settings! 😃

MfG // Konsti

@JantsoP JantsoP mentioned this issue Sep 21, 2021
@marvinsxtr marvinsxtr changed the title Website on iOS 14.x cannot detect camera being blocked in Settings Website cannot detect camera being blocked in Settings Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants