ngx-barcode-scanner icon indicating copy to clipboard operation
ngx-barcode-scanner copied to clipboard

Doesn't load on mobile

Open Elikill58 opened this issue 2 years ago • 5 comments

On computer, it works approximatly (I have bad camera) but on mobile phone, the camera just doesn't load

Elikill58 avatar Sep 07 '22 12:09 Elikill58

I have same problem someone help me? on mobile browser (chrome) "barcode-scanner-livestream" is hidden

bllazejk avatar Jan 10 '23 02:01 bllazejk

No I can't help you as I didn't fix it too

Elikill58 avatar Jan 10 '23 08:01 Elikill58

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 avatar Mar 16 '23 15:03 lukeid123

@lukeid123 your solution seems to work if we can't access to website. Me, I can so it's not concerning me

Elikill58 avatar Mar 16 '23 16:03 Elikill58

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.

lukeid123 avatar Mar 16 '23 16:03 lukeid123