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

Can't make the scanner work

Open harrispap03 opened this issue 5 years ago • 7 comments

Hey there. First of all I want to make it clear that I'm a newbie.

I've been trying to make the module work. I even tried turning the "tryHarder" on and off and I still can't make it work. Everytime I open the scanner page on a phone the browser asks the permissions normally but then nothing happens. The only thing I see is an empty page with the same color I have in the rest of my app.

Any ideas?

Here's a link to the component: https://github.com/harrispap03/fieldID/tree/master/src/app/qr-scanner

harrispap03 avatar Oct 11 '20 10:10 harrispap03

Are you testing on a computer? Or mobile?

werthdavid avatar Oct 11 '20 19:10 werthdavid

mobile, from 2 different phones. Oh, and I also tested it on the computer but it didn't work because I dont have a camera on my PC

harrispap03 avatar Oct 11 '20 19:10 harrispap03

iOS or Android? When using iOS make sure that you use Safari (any other browser is NOT supported due to Apple restrictions) and HTTPS!

werthdavid avatar Oct 12 '20 18:10 werthdavid

iOS or Android?

When using iOS make sure that you use Safari (any other browser is NOT supported due to Apple restrictions) and HTTPS!

Yeah, I'm using safari on iOS and chrome on android. The thing is that I'm not even getting the camera view. Just an empty screen. I might have made a huge mistake in my code or something.

harrispap03 avatar Oct 12 '20 18:10 harrispap03

I will take a look into your repo when I find some time

werthdavid avatar Oct 12 '20 19:10 werthdavid

Awesome. Thank you very much!

harrispap03 avatar Oct 12 '20 19:10 harrispap03

Just a little update. After you updated the library and made it fully compatible with Angular 10 I get a little border in my scanner but I still dont get a camera view

harrispap03 avatar Oct 15 '20 05:10 harrispap03