Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
166 views
Welcome To Ask or Share your Answers For Others

1 Answer

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)

  1. Download the repo using GIT or just a ZIP from Github.
  2. Add the plugin to your project (from the root of your project):

    cordova plugin add <path_download_plugin>

  3. You can start using plugins.barcodeScanner to invoke the plugin in your HTML/JS code.
  4. Do not forget to call cordova prepare to copy your files to each platform project.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...