2 Replies Latest reply on Feb 26, 2017 6:08 PM by Foolish Coder

    What are the plugins required for this app?

    Foolish Coder

      Hi all,


      I am new to PhoneGap but I have 12 years of experience in development (PHP, jQuery, JavaScript, CSS3, HTML5)


      I have created an app using phonegap (installed in desktop)

      I have some doubts about config.xml


      I've copied XML file from 'hello world' default app to use it in my custom app.


      1. What to put in widget ID ?


      for now I am using this:

      <widget id="com.phonegap.helloworld" version="1.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">

      Which I copied from 'hello world' default app

      after I built the app using this xml file app works very fine without any issue but I am not sure how to replace .com.phonegap.helloworld

      What do I have to put there?


      2. What are the plugins I have to include?


      My app has following features:

      1. a contact form (ajax, php, jQuery, html) this works fine in app
      2. some external links that open in the external browser (external links are opened in browsers without any issue)
      3. iframe
      4. a slider (jQuery)
      5. a gallery (like pretty photo, swipe box)


      the xml file has following lines :

      <plugin name="cordova-plugin-battery-status" source="npm" spec="~1.1.1" />
          <plugin name="cordova-plugin-camera" source="npm" spec="~2.1.1" />
          <plugin name="cordova-plugin-media-capture" source="npm" spec="~1.2.0" />
          <plugin name="cordova-plugin-console" source="npm" spec="~1.0.2" />
          <plugin name="cordova-plugin-contacts" source="npm" spec="~2.0.1" />
          <plugin name="cordova-plugin-device" source="npm" spec="~1.1.1" />
          <plugin name="cordova-plugin-device-motion" source="npm" spec="~1.2.0" />
          <plugin name="cordova-plugin-device-orientation" source="npm" spec="~1.0.2" />
          <plugin name="cordova-plugin-dialogs" source="npm" spec="~1.2.0" />
          <plugin name="cordova-plugin-file" source="npm" spec="~4.1.1" />
          <plugin name="cordova-plugin-file-transfer" source="npm" spec="~1.5.0" />
          <plugin name="cordova-plugin-geolocation" source="npm" spec="~2.1.0" />
          <plugin name="cordova-plugin-globalization" source="npm" spec="~1.0.3" />
          <plugin name="cordova-plugin-inappbrowser" source="npm" spec="~1.3.0" />
          <plugin name="cordova-plugin-media" source="npm" spec="~2.2.0" />
          <plugin name="cordova-plugin-network-information" source="npm" spec="~1.2.0" />
          <plugin name="cordova-plugin-splashscreen" source="npm" spec="~3.2.1" />
          <plugin name="cordova-plugin-statusbar" source="npm" spec="~2.1.2" />
          <plugin name="cordova-plugin-vibration" source="npm" spec="~2.1.0" />
          <plugin name="cordova-plugin-whitelist" source="npm" spec="~1.2.1" />


      When I build the app phonegap includes these plugins automatically.

      And when I install the app it asks almost all the permissions in the phone.

      It's kind of scary for the user..


      What are the plugins can be removed from this list?


      I've tried to remove some plugins but my contact form stopped working.

      What are plugins really needed to make the app works perfectly with the above listed features and what are the plugins I can remove from the above list?