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

Camera Permission on devices aksed every page reload #45

Closed
ilellouch opened this issue Mar 14, 2018 · 4 comments
Closed

Camera Permission on devices aksed every page reload #45

ilellouch opened this issue Mar 14, 2018 · 4 comments

Comments

@ilellouch
Copy link

Hello,

I've integrated this component (Thanks) and what I see today is :

  • On Desktop, permission is asked first time, then camera is working after each reload
  • On mobile (I'm testing with Iphone SE, IOS 11 on Safari), everytime I'm reloading the page, same question over again "asking for permission".
    Don't really know if it's a ngx-scanner question or a "permission handling by browser" question. Sorry if I'm mistaken.

Thanks
Ivan

@odahcam
Copy link
Member

odahcam commented Mar 14, 2018

Different devices (browser) have some different behaviors. e.g.: Samsung Internet Browser asks for permissions everytime you choose a different camera. Chrome Browser in most Androids asks just the first time. Also, things use to work different from localhost to a https environment.

This is a difficult thing to track, so I will not close until @werthdavid gives his point.

Thanks for reporting. 😁

@werthdavid
Copy link
Member

I did some research and it seems that you can't prevent Mobile Safari from asking, sorry for that.

But: iOS 11.3 has several changes regarding WebRTC, maybe the behavior changed there. I'll close the issue

@tillmon
Copy link

tillmon commented Mar 14, 2018

Try to turn off livereload

@lock
Copy link

lock bot commented Aug 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants