1
votes

How to implement barcode scanner in Hybrid applications, which i want to support it for android/ios/bb/windows platforms in IBM Worklight.

1
Please provide some implementation you didMustafa sabir
Here is the source code for implementing barcode scanner in JS gist.github.com/tobytailor/421369Mustafa sabir
Hi Mustafa sabir, When i click on Barcode Scanner Button automatically it should open the Mobile camera and the barcode should be scanned and i have to store it in local DB.Vamsi konanki
Refer this to understand how to use camera to get picture in worklight stackoverflow.com/questions/11900361/… . Then you can pass the image you get to the source provided here gist.github.com/tobytailor/421369 and display the output on the page.Mustafa sabir
I am able to open the camera,Now how to implement barcode scanning and where can i use get_barcode_from_image.js in Worklight project.Vamsi konanki

1 Answers

1
votes

You can use some third party libraries to achieve cross platform bar code scanning using camera.

  • Zbar - it is free and you can use it with cordova also.
  • RedLaser mainly used for enterprise apps and it is not free.

If you dont want to use above libraries you need to create a cordova plugin to capture the image and read the barcode from image which you captured. for more into link