[Barcode Plugin] Restrict the reading to EAN-13 type
Mobile icon
Forge component by Hector Gordin
Application Type

Is it possible to make the bar code scanner restrict the reading to a specific bar code type like EAN-13 only?

Hello Gerald,

Hope you're doing well.

Unfortunately, it is not possible to restrict the scanning of a specific barcode using Barcode Plugin.

It would be a nice improvement, so you may open an idea for this.

As an alternative you may check this plugin (it's not supported though).

Analysing the JavaScript from it, you'll see that they're passing the barcode formats into the scan function:

According to the documentation, "if you want to scan specific types of formats, just insert the types split by a comma into 'Barcode Formats' field".

Hope that this helps you!

Kind regards,

Rui Barradas

Hi Gerald,
Would you be looking into using this for Native applications, PWA, or both?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.