Introducing: Capacitor Barcode Scanner Plugin

Originally published at: Introducing: Capacitor Barcode Scanner Plugin - Ionic Blog

We are thrilled to bring our first Ionic + OutSystems shared plugin to the Capacitor ecosystem as a core supported plugin.

4 Likes

Very useful, thank you! Is there a way to use it in a Cordova project?

I can’t compile due to “Inconsistent JVM-target compatibility detected for tasks ‘compileDebugJavaWithJavac’ (17) and ‘compileDebugKotlin’ (21)”. Raising the minimum SDK version doesn’t seem to be enough.

1 Like

When npx cap run android, I encounter the following error

The plugin requires to add some lines to the gradle files, see Barcode Scanner Capacitor Plugin API | Capacitor Documentation

Is there a way to customize the UI? The current barcode scanner plugin we use allows us to add a custom overlay, but the docs don’t detail if this is possible.

Cool! If you provide a viewport option for overlaying this on top of html, I’m all in. This full-screen stuff doesn’t work for me.