ngx-scanner
ngx-scanner copied to clipboard
Scanning performance significantly worse than the demo app
Describe the bug I upgraded an existing Angular 7 production project to Angular 10. I had some complaints that the scanner was barely performing any scans after the update, whereas before it worked just fine. I confirmed this behavior. I then generated a new project and copied the demo app code exactly from this repository and placed it in my new project. I was getting the same issues that I was having in my production app. Slow and broken performance for the 3 barcode types I allow, CODE 128, CODE 39, and EAN13.
The demo app linked works great (not the StackBlitz one, I believe that one is still Angular 7) and the app info claims it is on Angular 10.2.0, which is exactly what my production and demo app is setup as too.
Is the demo app link somehow different then the source code available in this repo? ngx-scanner/projects/zxing-scanner-demo/src/
To Reproduce Steps to reproduce the behavior:
- Generate a new Angular 10 project
- Add in the code from this repo
- Scan
Expected behavior I would expect the demo app found in the repository to perform exactly the same as when it is copied into a new Angular 10 project.
Additional context This was tested on iPhone 12, iPhone XR, iPhone 8 Plus, Pixel 2, Pixel 3, Galaxy S9.