While you're at it you might as well upgrade to the latest version, cli-6.0.0. The core plugins should now be referenced as <plugin name="cordova-plugin-device" /> (changed from org.apache.cordova.device). Here's the part of your config.xml you need to update:
<preference name="phonegap-version" value="cli-6.0.0" /> <!-- or cli-5.2.0 if you want -->
<plugin name="cordova-plugin-device" />
<plugin name="cordova-plugin-file" />
<plugin name="cordova-plugin-file-transfer" />
<plugin name="cordova-plugin-media" />
Thank you for your reply, now I can get the application to load, but I still have 2 more questions to ask:
In my config file I have :
Do you have any idea about the plugins I need to use instead of these 2?
Also when trying the new build application on my phone I dont get any splash screen anymore,
<!-- Splash Screens -->
<gap:splash src="splash.png" />
<gap:splash src="images/splash-160x220.png" gap:platform="android" gap:density="ldpi" />
For splash screen do I have to use another tag?
Thanks in advance !
Well it seems that the last two plugins you written about do not exist, i found
<plugin name="cordova-plugin-dialogs" />
<plugin name="cordova-plugin-statusbar" />
<plugin name="cordova-plugin-splashscreen" />
<plugin name="cordova-plugin-network-information" />
The applicatoin has a functionality where you can download some files from an amazon s3, but in my new build this does not work, neither the splash screen, even tho I changed the tags instead of <gap:splash> to <splash>
Should going from 3.3.0 to 6 be code backwards compatible?
For downloading files you probably need to have a look at the file-transfer plugin: https://github.com/apache/cordova-plugin-file-transfer
For the splash screens, I linked you to the updated splash documentation (PhoneGap Build Documentation ) -- you need to make sure you have the required sizes.
Upgrading from 3.3.0 to 6 is a big jump, so don't expect it to work out of the box. Things have certainly changed, as cli-6 includes major version increments.