Phonegap Plugin

0

Hello, I am beginner with phonegap / cord, and I've been having trouble understanding some things, such as installing plugins, no matter the way I do when I buildo project in phonegap's own website link , it does not detect the plugins that have been inserted.

For example, this simple email plugin:

link

I install via console: cordova plugin add https://github.com/katzer/cordova-plugin-email-composer.git

And I insert in my xml the reference: <gap:plugin name="de.appplant.cordova.plugin.email-composer" version="0.8.2" />

And then buildo it in the site, and in plugins does not appear this plugin inserted.

If anyone with experience with hybrid app can clarify, thank you right away.

    
asked by anonymous 05.05.2016 / 01:09

1 answer

0

If you are going to use PhoneGap Build you do not need to install the plugin via console, only in config.xml For you to install a plugin via git just do it like this:

<plugin spec="https://github.com/katzer/cordova-plugin-email-composer.git" source="git" />

Then zip your files and send them to PhoneGap Build . And do not forget to add the .js of your plugin la in your index.html so it can work;)

    
20.08.2016 / 23:00