Browser barcode scanner

1

The scenario is as follows:

  • I'm creating an application on Ionic 2, however I need it also be accessed through a URL in a browser, such as Chrome.
  • One of the requirements of this application is that it performs barcode reading.
  • I tried to use the Ionic's own official plugin , which even says that it has browser support, but I did not roll. My code is the same as the tutorial.
  • In the browser, when trying to access the scanner function (both via desktop and mobile) it returns the error message "Cordova_not_defined".
  • Only generating .apk and running on my cell phone I was able to perform the barcode scanner function.

What I need is something like this: link

But the problem with this is that, despite the name, it only reads QR code, not barcode ... And yes, I tested it.

It would help me a lot if anyone could:

  • Notify me of a plugin scanner that can be used in my application and accessed by a browser ;
  • Or inform me a solution for this official Ionic plugin to run in the browser without this cordova error message.
asked by anonymous 15.06.2017 / 16:55

0 answers