BarcodeScanner not working with PhoneGap Build

  • 1
  • Problem
  • Updated 7 years ago
  • Solved
BarcodeScanner is not working with PhoneGap Build for me. I used the code provided here:

https://github.com/wildabeast/Barcode...

I made no modifications besides changing plugin name scheme in config.xml so that PhoneGap Build could recognize it. I also tried specifying older versions of phonegap and barcodescanner in config.xml to no avail.
Photo of PhoneGap User 123

PhoneGap User 123

  • 2 Posts
  • 0 Reply Likes
  • frustrated

Posted 7 years ago

  • 1
Photo of Mario

Mario, Champion

  • 120 Posts
  • 17 Reply Likes
The implementation of the BarcodeScanner has changed. The code of the sample is not working anymore.

see BarcodeScanner plugin info:
https://build.phonegap.com/plugins/13
Photo of Maurice Lourens

Maurice Lourens

  • 22 Posts
  • 0 Reply Likes
Did a build for barcode yesterday. It worked after figuring out that the demo on github dit not work anymore.

1) Add the plugin to your config.xml

2) Add the js file reference to your code (do NOT add the js file itself):

3) add the action to your javascript
like descripbed on github:
https://github.com/phonegap-build/Bar...
Photo of PhoneGap User 123

PhoneGap User 123

  • 2 Posts
  • 0 Reply Likes
I was able to get the plugin working after changing the javascript inside the html file. Thanks!
Photo of Hyginus Ugwumba

Hyginus Ugwumba

  • 1206 Posts
  • 42 Reply Likes
Cool!!

Many thanks Maurice

This conversation is no longer open for comments or replies.