Building a Mobile App with AngularJS and Barcode Scanner
With Barcode Scanner plugin, you can quickly add the functionality to scan bar codes from your app. This can be helpful in many cases. For example, when building a warehouse mobile app: simply scan a product bar code, search the database with that code and retrieve the product information.
You can see how to build such app for jQuery Mobile here.
Adding a Barcode Scanner plugin to your Appery.io Angular app is very simple:
- Go to
Project > CREATE NEW > From Plug-in
. - Select
Apperyio Barcode Service
and clickImport selected plugins
.
Then, in the Project view, a related service (Barcode_scan
) and a JavaScript (Barcode
) file will appear. After a native service has been added to the app, it can be called like any other REST service.
The Barcode Scanner plugin uses Cordova API. As the plugin uses native APIs, you should test it on the device or using the Appery.io Tester app.
Read the step-by-step tutorial we’ve prepared on Using the Barcode scanner service. And of course, feel free to contact us if you have any issues.