Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include barcode scanner in mobile web app without going native?

is there any possibility to include a Barcode scanner in a mobile web app without going native?

As a former Android developer I know how to integrate e.g ZXing in my native code and I also know that there are Barcode scanner plugins for Phonegap out there. They all have something in common: you need a Development Environment for each mobile platform AND you have to get your hands dirty with native development. Furthermore you cannot use PohneGap Build.

I am searching for a standalone HTML5 mobile app approach. More specific, I try to find a way to outsource the Barcode scanning from the native platform. An example: I can access the camera with HTML5 apps, so is there any web service out there which, for instance, receives Barcode pictures and returns the code?

Can anyone tell me if sth like that exists or is in progress?

Any helpful information appreciated!

like image 928
Chris Avatar asked Aug 08 '12 22:08

Chris


People also ask

How do I connect my barcode scanner to my mobile?

First plug the USB barcode scanner to the female USB connector of an OTG adapter or a cable. Then plug the the micro-USB end of the OTG adapter or cable into the micro-USB port of your mobile device and wait for the system to recognize the scanner.

Can mobile app scan barcode?

Your Android device can scan any barcode or QR code by using a free app from the Play Store. Once you've installed the barcode scanning app, your device's camera can be used as a scanner. You can then take different actions depending on the content contained in the barcode.


1 Answers

Barcode requires camera access. HTML5's WebCam API is still very new and it's not very widely supported on desktop browsers and much less on mobile browsers too. You can't depend on it being available.

After seeing your question, I have tested the Camera sample app in my HTC OneX. And, it worked only in Opera mobile browser. And I learnt that Opera is the only mobile browser that supports HTML5 camera extension.

You can also test visiting.

http://people.opera.com/danield/html5/explode/

I recommend to use interface framework like PhoneGap, if you really have the plan to make it native.

like image 131
Nilanchala Panigrahy Avatar answered Nov 02 '22 14:11

Nilanchala Panigrahy