Last week I had a request for building an iphone and android app where you would scan a product barcode in the warehouse and you will be shown the details of that product from the client warehouse database.
I had a google around for a barcode app that will send a decoded barcode to my webapp. I came across pic2shoppro which will do just this. The good thing about this app is that your webapp can link direct to the app on your phone using a special protocol url.
So on my web page I have an anchor tag which is formated as follows.
Clicking this link in a browser on my mobile device with pic2shoppro installed will start the pic2shoppro camera app allowing me to scan the barcode. The scanner is very accurate and quick and then calls back to the url below.
Where code is the barcode and FORMAT is the format of the barcode ie, EAN13
My webapp then searches the database and returns the product information. All in all the coding took me about 4 hours as I used botostrap 3 for the first time which I loved. Check out the screen shots below.
Here is the download of the code for you to play with.