I'm using a barcode plug-in to scan the QR code but when I click on the icon it shows that the plug-in is unavailable. Is there a solution to this?
Hi @Jayer Luke,
Try to use the CheckBarcodePlugin actie before you actually call the ScanBarcode action. It will check if the plugin is available and will return an error message in case it is not available.
Furthermore, did you check Service Center to see if there are any error messages showing up regarding this issue?
Also, are you testing on an actual phone or in the browser? If on phone, did you regenerate the APK?
Best,
Bart
Hi, @Bart Nooijens
I have tried using the CheckBarcodePluin action before the ScanBarcode action. But it will just keep popping out the error message saying the Barcode Plugin is unavailable.
Im using an actual phone for testing.
Cheers,
Jayer
We used this plugin in several projects and never saw this message before.
- Did you check Service Center to see if there any other error messages?
- Did you try to regenerate the APK and install it again? Maybe to current APK that you have installed does not have the barcode plugin included.
Posting in case someone else has the issue. TLDR: completely uninstall and reinstall your application.
My mobile app was originally deployed to production without the barcode plug-in. The new version of the app worked fine on the development device, but when I rolled it to production the devices automatically upgraded, but everyone kept getting the Barcode Plugin Unavailable error.
Completely uninstalling and reinstalling the app resolved the issue. I suspect there are components of the plug in, possibly the Cordova components, that won't install through the upgrade process.
Best of luck!