13
votes

We have some doubts about how to integrate phonegap plugins and then build our mobile application with phonegap build, is it possible?

When you build your app with Phonegapbuild it builds up for all the supported devices, but the instructions regarding how to install any plugin in phonegap are specific for Android/ios/Windows phone etc.. so

How could we install a specific plugIn and then use the phonegap build?

In case that is not possible, what other options do we have to build a phonegap app?

Thanks in advance.

1
I have an issue, phonegap always says "This application has no plugins." i have the config.xml correctly set with approved plugins.ToughPal

1 Answers

8
votes

Plugins are native code extensions that phonegap apps are able to invoke via javascript, therefore the plugin must be implemented in the native language of each target platform, i.e. Java for Android, Objective-C for iOS, etc.

There is a hand-picked list of plugins available when using Phonegap Build for the Android and iOS platforms.

However, if you want to use plugins other than these, or to target platforms other than iOS and Android, you'll need to set up a native development environment for each of your target platforms (e.g. Eclipse for Android, Xcode for iOS) to build your phonegap app yourself.

This isn't as daunting as it sounds since there's really good getting started guides for each platform that Phonegap supports.