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

Scanning performance significantly worse than the demo app

Open CodyAlexanderDev opened this issue 4 years ago • 0 comments

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:

  1. Generate a new Angular 10 project
  2. Add in the code from this repo
  3. 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.

CodyAlexanderDev avatar Mar 31 '21 19:03 CodyAlexanderDev