ngx-scanner
ngx-scanner copied to clipboard
upgrading from 2.0.1 to 3.2.0 breaks for Android phones using version 8(oreo),9(pie)
This is reproducible by going to the demo page https://zxing-js.github.io/ngx-scanner/ with an Android device on 9 or 9.
error:
Uncaught ReferenceError: globalThis is not defined
On Android phones using 10+ the scanner works 8 and 9 does not work
I tried using the old 2.0.1 and it works for Android 8,9 Tried to reproduce on moto g6, pixel 2 and pixel 3 emulator Using Phone chrome browser version 69
Which versions of Angular, ngx-scanner, OS, TypeScript, browsers are affected?
Angular 12 "@zxing/browser": "0.0.5", "@zxing/library": "^0.18.6", "@zxing/ngx-scanner": "^3.2.0",
Is there anything else we should know?
There is no prompt to allow the permissions to use the camera