Include a barcode scanner in a mobile web application without leaving your native?

Is it possible to include a barcode scanner in a mobile web application without leaving my native?

As a former Android developer, I know how to integrate, for example, ZXing into my own code, and I also know that there are barcode plugins for Phonegap . All of them have something in common: for each mobile platform, a development environment is needed. And you have to get infected with your own hands. In addition, you cannot use PohneGap Build .

I am looking for a standalone approach for HTML5 mobile applications. More specifically, I am trying to find a way to outsource barcode scanning from my own platform. Example: I can access a camera with HTML5 applications, so is there any web service that, for example, receives barcode images and returns a code?

Can someone tell me if such a situation exists or exists or not?

Any helpful info appreciated!

+6
source share
2 answers

The barcode requires camera access. The HTML5 WebCam API is still very new, and it is not very widely supported on desktop browsers and, especially, on mobile browsers. You cannot depend on its availability.

After looking at your question, I tested the Camera sample app on my HTC OneX. And it only worked in the Opera browser. And I found out that Opera is the only mobile browser that supports the HTML5 camera extension.

You can also check visit.

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

I recommend using an interface infrastructure like PhoneGap if you really have a plan to make it native.

+1
source

Using my Galaxy S3 running on 4.1 (Jelly Bean), I was able to access the camera directly from my web application using HTML5.

HTML 5 native camera access from a web application

+1
source

Source: https://habr.com/ru/post/922421/


All Articles