P
P
Paulo Madronero2014-06-30 21:41:22
JavaScript
Paulo Madronero, 2014-06-30 21:41:22

How to add plugins to phonegap Ubuntu?

I installed phonegap, created a project:
~$ phonegap create MyProject
Then I built it for Android:
~$ phonegap build android
Then I add plugins:

~$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git

But they don't work (wrote a simple script that shows a message using navigator.notification.alert and nothing comes out). It even shows that there are no installed plugins:
~$  phonegap local plugin list
[phonegap] no plugins installed

It should be noted that I tried different options, assembled the project before and after adding plugins and the result is the same. The config.xml file contains the line gap:plugin name="org.apache.cordova.dialogs". Phonegap itself works, I install it on the phone and on the emulator and the interface works, but without plans. What could be the problem? Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Paulo Madroniero, 2014-07-01
@madroneropaulo

All found a solution. Error in lib/phonegap/local.plugin.list.js Here is the commit.
I rewrote the script and it worked.

S
Sergey, 2014-06-30
Protko @Fesor

I don’t know how it is now, but half a year ago cordova-cli and phonegap-cli were wildly important things in terms of installing plugins. It was easier to use separately plugman.
Have you even checked what is written in plugins.json?

I
Igor Tkachenko, 2014-07-01
@foozzi

docs.phonegap.com/en/3.0.0/guide_cli_index.md.html - section "Add Features"
It works for me as described there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question