I have a Google App Script web app that uses a camera to scan QR codes search the data, and present a form but 3 days ago camera stooped working in google app script web app i didnot change anything i think there is a issue from google side i am reciving this error in console [Violation] Permissions policy violation: camera is not allowed in this document. and this on screen Error starting camera: Error getting userMedia, error = NotAllowedError: Permission denied also i have tried every possible thing that can be done from my side duplicated project library noting seems to work please help me resolve this issue.
I see the same issue scanning QR codes in my Apps Script trying to scan QR codes.
My application worked yesterday, it is broken today.
The iframe sandbox does not include “camera” permissions and I suspect that is the source of the problem. Not sure if this is from a change in Chrome or Apps Script.
I moved the scanner code outside of apps script to a domain I control as a workaround.
Found two related bug reports:
i have the same issue. till atm..
Same problem here. My barcode scanner stopped working. It is vital to opperations. Thank you @Eric_Blevins for the workaround. I hope this wasn’t intentional and Google fixes it soon.
I’m having the same problem as well…oddly it still works on an older version of my app but not on anything I created recently.. I even created a new sheet with the exact same old code and it won’t work on the new script.
I’ve encountered the same problem. If my old version works, is it possible to avoid this situation where the camera can’t be used by simply updating the old version without redeploying?