Example page silently fails when served via unsecured connection (http)
Hi,
the example page unfortunately does not work on a Mac when served over http:// without any warning or error message. The dialog for the camera permission doesn't appear, nothing happens.
If I load the same page via https:// everything works fine, just as expected and in the same way as the live example page.
I do not own a Windows or Linux Machine, but only Mac browsers are affected in particular. I double-checked on Safari/Firefox/Chome – same issue in all browsers, also on on iOS/Safari.
This is obviously an intended security behaviour of any of the implemented technologies and browser features. Maybe the error or warning has been catched or suppressed somewhere?
There should be a message to make this issue transparent.
Do you have any ideas to isolate, localize or fix this?
same here! Can't find anything about it...
For Security reasons every modern web browser blocks request to camera and microphone unless it is from a valid https source.
For Security reasons every modern web browser blocks request to camera and microphone unless it is from a valid https source.
As described above this is not the reason for this issue. Accessing the camera via http is an issue that should be transparent to the user, at least to a developer. Currently there is no feedback or message about this. JsQRScanner seems to catch the exception or blocks the communication in another way.
The live test demo site, https://treasurehuntqr.appspot.com/treasurehunts/play/5657382461898752?at=106253815718623556511956012583&au=5629499534213120, even though is using https, still does not work with iOS / Chrome. It is Ok with iOS / Safari.