Barcode scanner for browser

Asked

Viewed 1,870 times

2

The scenario is as follows:

  • I’m creating an application in Ionic 2, but I need it to also be accessed through a URL in a browser, like Chrome.
  • One of the requirements of this application is that it reads barcode.
  • I tried to use the official plugin of Ionic itself, that even says that it has support for browser, but for me it did not happen. 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 by generating the . apk and running on my mobile I was able to perform the function of the scanner Barcode.

What I need is something like this: https://github.com/code-kotis/barcode-scanner

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 someone could:

  • Inform me some scanner plugin that can be used in my application and accessed by a browser;
  • Or informs me a solution for this official Ionic plugin to run in the browser without this Cordova error message.
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.