currently I'm trying to install the BarcodeScanner Plugin for Phonegap Version 3.0.0
. I can't find any working documentation on how to install it correctly and I didn't figure it out myself.
So I would really appreciate any help!
Thank you in advance! Best regards, Andreas
Powered By GitBook 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 versionor iOS version).
RSVP You can use the BarcodeScanner plugin to scan different types of barcodes (using the device's camera) and get the metadata encoded in them for processing within your application. Cross-platform BarcodeScanner for Cordova / PhoneGap.
Powered By GitBook 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 versionor 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.
You can use the BarcodeScanner plugin to scan different types of barcodes (using the device's camera) and get the metadata encoded in them for processing within your application. Cross-platform BarcodeScanner for Cordova / PhoneGap. Follows the Cordova Plugin spec, so that it works with Plugman.
Actually there are a couple of discussions about this issue on the github page of the plugin here and here.
I managed to have a version working in iOS and Android, you can check it here. There is another fork that has made a pull request to the original with changes for 3.0.0 even I am not quite sure that the plugin works in iOS.
Instructions to install (Using cordova cli)
Add the plugin to your project (from the root of your project):
cordova plugin add <path_download_plugin>
plugins.barcodeScanner
to invoke the plugin in your HTML/JS code.cordova prepare
to copy your files to each platform project.Here is my explanation based on Jonathan solutions. I tried his solution and succeeded but took more time. So I thought to explain steps I followed so that it can save someone's time.
Steps:-
Note: you must install node.js if not already installed.
npm install -g cordova
orsudo npm install -g cordova
$ cordova create hello com.example.hello HelloWorld
The first argument specifies a hello directory to be generated for your project. Its www subdirectory houses your application's home page, along with various resources under css, js, and img, which follow common web development file-naming conventions. The config.xml file contains important metadata needed to generate and distribute the application.
The other two arguments are optional: the com.example.hello argument provides your project with a reverse domain-style identifier, and the HelloWorld provides the application's display text
cd hello
cordova platform add ios
cordova plugin add https://github.com/jonathannaguin/BarcodeScanner.git
cordova build
cordova prepare
and your own index.html,js,css files
I will be glad if it helps someone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With