ngx-barcode-scanner
ngx-barcode-scanner copied to clipboard
Doesn't load on mobile
On computer, it works approximatly (I have bad camera) but on mobile phone, the camera just doesn't load
I have same problem someone help me? on mobile browser (chrome) "barcode-scanner-livestream" is hidden
No I can't help you as I didn't fix it too
This solution helped me when working in dev: https://stackoverflow.com/questions/16835421/how-to-allow-chrome-to-access-my-camera-on-localhost
Be sure to add the 192.xxx address and port to the box.
Camera permission requires https
@lukeid123 your solution seems to work if we can't access to website. Me, I can so it's not concerning me
I was facing the same problem as you (maybe different issues though) where I could access the webpage, but the scanner was not showing nor was there a prompt for camera permission.
Adding the address to the chrome flags setting, fixed it for me. Basically I'm telling it 'I know this webpage isn't https, but let's pretend it's secure anyways'.
I used Eruda from the Play Store to double check I wasn't getting any errors in console log too.