Ngx-scanner: Camera Permission on devices aksed every page reload

Created on 14 Mar 2018  路  4Comments  路  Source: zxing-js/ngx-scanner

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

not a bug ios wontfix

Most helpful comment

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. 馃榿

All 4 comments

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. 馃榿

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

Try to turn off livereload

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.

Was this page helpful?
0 / 5 - 0 ratings