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)
- Download the repo using GIT or just a ZIP from Github.
Add the plugin to your project (from the root of your project):
cordova plugin add <path_download_plugin>
- You can start using
plugins.barcodeScanner
to invoke the plugin in your HTML/JS code.
- Do not forget to call
cordova prepare
to copy your files to each platform project.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…