Blog >

This app uses plugins from the PhoneGap Build repository. These plugins won’t be accessible after Nov 15th, 2016

If you’re using PhoneGap Build to build your mobile apps, and you’re getting this message when trying to build your apps, you are not alone. What is surprising is that it is hard to find any useful information on the web about what to do if faced with this scenario. The only solution for fixing it that I have come across is on a Spanish website that I needed Google Chrome to translate for me. Funnily enough, the website is called, which I first read as ‘phonegaps’, and which could be a more apt domain name  :lol:

The post is here:

I wanted to share an English version of it, given the lack of other resources on the web.

In short, what you need to do is replace any lines in your config.xml that contain ‘<gap:plugin …>’ with the new version of ‘<plugin name=… >’. Below is the same list from the Spanish ‘pain’ website, but with the whitespace tidied-up a little, and the alphabetical order of the plugins corrected a little to make it easier to find your plugin.

Old syntax:

 <gap:plugin name="org.apache.cordova.battery-status" />
  <gap:plugin name="" />
  <gap:plugin name="org.apache.cordova.console "/>
  <gap:plugin name="org.apache.cordova.contacts "/>
  <gap:plugin name="org.apache.cordova.device "/>
  <gap:plugin name="org.apache.cordova.device-motion "/>
  <gap:plugin name="org.apache.cordova.device-orientation "/>
  <gap:plugin name="org.apache.cordova.dialogs" />
  <gap:plugin name="org.apache.cordova.file" />
  <gap:plugin name="org.apache.cordova.file-transfer" />
  <gap:plugin name="org.apache.cordova.geolocation" />
  <gap:plugin name="org.apache.cordova.globalization" />
  <gap:plugin name="org.apache.cordova.inappbrowser" />
  <gap:plugin name="" />
  <gap:plugin name=" -Capture "/>
  <gap:plugin name="" />
  <gap:plugin name="org.apache.cordova.splashscreen" / >
  <gap:plugin name="org.apache.cordova.vibration" />

New syntax:

<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-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-media-capture" source="npm" spec="~ 1.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" />

Note: you will want to keep an eye on what ‘spec’ number (or version) you use. As it says on the PhoneGap docs website:

If you omit the spec (or version) tag of a npm or PhoneGap Build plugin, your app will always be built with the latest version of the plugin. It will be updated automatically the next time you update your application code after a plugin is updated, which may cause unexpected behavior.

My suggestion is to find a spec number/version that works for you, and then lock it to that number.

Good luck updating your config.xml!