Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

ZBar Module for iPhone

I'm working on an iPhone Application, and I really need to built-in some sort of EAN barcode scanner, and it needs to be free to use.

Has anyone had succes building a iPhone module for Appcelerator, which is able to scan and decode barcodes?

If anyone is up for creating such a module based on eg. ZBar or other open source EAN barcode scanner, I would be very interested in it. I might even be able to pay a little bit for it :)

— asked June 7th 2010 by Daniel Juhl Mogensen
  • barcode
  • ean
  • iphone
  • mobile
  • modules
  • scanner
  • zbar
  • zxing
0 Comments

6 Answers

  • Hi,

    we have developed a TiBar - ZBar module for Titanium Mobile.

    Cheers!

    — answered August 6th 2010 by Lukasz Radziwonowicz
    permalink
    0 Comments
  • i just asked a very similar question…
    http://developer.appcelerator.com/question/32851/calling-obj-c-classes-from-ti

    but fyi… I wrote a native barcode reader app last year, using redstripe from occipital. I also monkied around doing the same kind of app on android but with a free library for bar codes. I actually had more luck with the 2D codes.

    But my question that I posted above is the exact same question you are going to need to resolve.

    — answered June 7th 2010 by vincent youmans
    permalink
    0 Comments
  • i just asked a very similar question…
    http://developer.appcelerator.com/question/32851/calling-obj-c-classes-from-ti

    but fyi… I wrote a native barcode reader app last year, using redstripe from occipital. I also monkied around doing the same kind of app on android but with a free library for bar codes. I actually had more luck with the 2D codes.

    But my question that I posted above is the exact same question you are going to need to resolve.

    — answered June 7th 2010 by vincent youmans
    permalink
    0 Comments
  • I started to look at building a custom module using this tutorial
    http://sourceforge.net/apps/mediawiki/zbar/index.php?title=HOWTO:_Add_a_barcode_reader_to_an_iPhone_app

    I managed to create a custom module following the document
    http://developer.appcelerator.com/doc/mobile/iphone/module_sdk

    but I got the error [ERROR] Build Failed. Please see output for more details in the console. I couldn't find the output. I think it may be the way the zbar is included - due to my limited XCode knowledge and time I didnt get any further.

    Then, I noticed there is also this ticket -

    https://appcelerator.lighthouseapp.com/projects/32238/tickets/375-access-to-camera-as-a-barcode-reader

    — answered June 7th 2010 by Stephen Priestley
    permalink
    2 Comments
    • Hello Stephen,
      did you find a solution already?

      — commented June 15th 2010 by Martin Lasak
    • ibtw, the output is hidden: under the link "toggle output". but click on it if the message "[ERROR] Build Failed. Please see output for more details" was printed.

      i am trying to understand the reason for the failure but without success so far.

      — commented June 15th 2010 by Martin Lasak
  • @Stephen
    I did see that ticket, but it's important for me that the reader can scan EAN barcodes, and I'm affraid they're only using the zxing lib., which only support QR Codes for iPhone.

    Please let me know, if you should be able to get any closer to anything :)

    — answered June 7th 2010 by Daniel Juhl Mogensen
    permalink
    0 Comments
  • when i get time I'll investigate further into using zbar - its probably something simple I missed when creating the module. I'll let you know.

    — answered June 7th 2010 by Stephen Priestley
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.