M
M
Mokhirjon Naimov2016-07-31 18:15:48
Mobile development
Mokhirjon Naimov, 2016-07-31 18:15:48

How to manually connect the plugin in phonegap?

That is, without the development environment tools phonegap (cordova), npm, etc.
I'm just getting started with phonegap but would like to work with plugins (n: PhoneGap Plugin BarcodeScanner ).
While I'm working in sublime text as usual with HTML, I compile the project via build.phonegap.com, then I test it in my android device...
Attempts (all attempts to connect the plugin leading to not installing the application after compilation):

  1. Add code to config.xml
    <plugin name="com.phonegap.plugins.barcodescanner" spec="2.0.0" source="pgb" />
    , using the code in the example
  2. Item number 1 plus <script src="barcodescanner.js"></script>in/www/index.html
  3. Add Code
    <plugin name="com.phonegap.plugins.barcodescanner" />
    in config.xml, using the code in the example, + item number 2 and copying the plugin from github to a local folder/plugins
PS To start, I used a template ( https://github.com/phonegap/phonegap-template-blank) with deleting all files except for the PPS/config.xml folder . Projects without plugins, that is, with regular HTML / CSS / JS, are compiled, installed and work fine! /www

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mokhirjon Naimov, 2016-08-06
@zvermafia

Installed phonegap cli...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question