Two weeks ago we released an updated version of our barcode module for Appcelerator Titanium Mobile. We’ve received some great feedback since then. Considering this feedback and the release of Titanium 1.6, we worked on an update of our module.
The major changes were:
- Fix compatibility for version 1.6 of the Titanium Mobile SDK
- Fix callback for views outside of the root view
To use the updated plugin, download it from the download section of our github repository. When you downloaded it, copy it to your project directory and reference it in the tiapp.xml file located in the same directory. It is important you set the version attribute to 0.2.
If the scanner isn’t centered in high-resolution screens, you also need to add an additional entry to your tiapp.xml which sets the supports-screens tag of the android manifest correctly:
A complete tiapp.xml file could look like this:
com.mwaysolutions.barcodeexample Barcode Example 1.0 M-WAY GmbH http://www.mwaysolutions.com Example applicatiton 2011 by pfleidi default_app_logo.png false false default false false false true a31aa681-860e-4923-abe7-b5d92718b640 Ti.UI.PORTRAIT Ti.UI.PORTRAIT Ti.UI.UPSIDE_PORTRAIT Ti.UI.LANDSCAPE_LEFT Ti.UI.LANDSCAPE_RIGHT com.mwaysolutions.barcode
After you referenced the module and added the entry for the android manifest, you can load the plugin by using require(‘com.mwaysolutions.barcode’).