Including QR Scanner app with PhoneGap

I am starting to write an application that should have the ability to read a QR code built into it. This means that I basically want to be able to scan the QR code from within the application, and then execute some logic related to my application.

I got a few explanations on how to do this in Android (although I have not tried it yet), but now that I have decided to use PhoneGap, I want to know if it will change anything.

Is using PhoneGap used, that I will have a general way to include the QR scanner application in my own application, or do I still need to take care of the QR scanner application, including for each platform?

+6
source share
1 answer

For such additional features, the PhoneGap plugin is required with its own implementation for each platform. See http://wiki.phonegap.com/w/page/36752779/PhoneGap%20Plugins

The good news is that the BarcodeScanner plugin is already implemented for Android, BlackBerry and iOS, see https://github.com/phonegap/phonegap-plugins

This plugin supports 1D barcodes, as well as QR codes and other 2D codes, integrating ZXing (http://code.google.com/p/zxing/)

Please note that at the moment, for the integration of the plug-in in the PhoneGap application, a different procedure is required for each platform. See the PhoneGap Wiki link mentioned above, as well as the assembly and installation instructions in the README file for each plugin.

+14
source

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


All Articles