PhoneGap BarcodeScanner Plugin
Deprecated for Cordova 9.0 or higher.
To check third party Cordova plugins, you need to create a custom build debugger (Android version or iOS version).
When using it with the android custom build debugger for cordova 7.1, you need to build with the following settings in config.xml.
<preference name="monaca:ANDROID_DEBUGGER_APPCOMPAT_VERSION" value="27.+" />
When combining with the MonacaBackend plugin provided in the Cordova 7.1, the following setting is required for "Install Parameters" on the plugin setting screen.
ANDROID_SUPPORT_V4_VERSION=26.+
iOS Quirks
Since iOS 10 it's mandatory to provide usage description in the info.plist
if trying to access privacy-sensitive data. When the system prompts the user to allow access, this usage description string will displayed as part of the permission dialog box, but if you didn't provide the usage description, the app will crash before showing the dialog. Also, Apple will reject apps that access private data but don't provide usage description.
This plugins requires the following usage descriptions:
NSCameraUsageDescription
specifies the reason for your app to access the device's camera.
To add these entries into the info.plist
, you can use the <edit-config>
tag in the config.xml
file like this:
Enable Plugin in Monaca
From the IDE menu, go to
Configure → Cordova Plugin Settings
.Under Available Plugins section, hover over the
Phonegap BarcodeScanner
plugin and clickEnable
button.
PhoneGap BarcodeScanner Demo
Here is a simple example demonstrating how to use the PhoneGap BarcodeScanner Plugin with Monaca:
See Also:
Last updated