Create config.xml File For Phonegap Build From Scratch

Share on FacebookTweet about this on TwitterShare on Google+Share on RedditShare on StumbleUponDigg thisFlattr the authorPin on PinterestShare on TumblrShare on LinkedInPrint this pageBuffer this page

In this tutorial we will create a config.xml file from scratch for PhoneGap Build apps. The config.xml file is the most essential part of a PhoneGap Build app without it you will not be able to use the build service to build you apps.

All apps must have one config.xml file located at the root of the app.We took a look at the sample app that we will be using in the this video here. Let’s take the following folder structure for example

Notice that I have placed the config.xml file at the root of our folder along side the index.html file.

 

We will get started by putting the following XML code in the config.xml file. You can read more about this in the documentation here.

We are creating the <?xml ?> tag on line 1 and this is a standard xml tag.

Next we are creating a widget tag which has xmlns and xmlns:gap attribute which are for XML namespace.

The id attribute inside of the widget tag is used to uniquely identify the app on the PlayStore/iTunes and should be unique for every app and must be in the reverse domain notation.

The versionCode attribute is used by android only to identify different versions of the same app, so if you publish an app with versionCode=1 when you push an update to that app you will need to increment the number so for the next update you have to put versionCode=2 and so on.

The version attribute follows the standard version system which is [major].[minor].[build]

The name tag is the name of your app. This is not the name that will be used in the PlayStore/iTunes but it will be the name of the app on a device.

The description and author tags are used by PhoneGap build and are pretty self explanatory.

Watch Video Tutorial Here:

 

Full Course Curriculum : Click here

Conclusion

The config.xml file is a must for any PhoneGap build App, as a matter of fact it is also a must for apps that are built using the Cordova CLI and PhoneGap CLI as well.

 

Leave Me Your Questions And Feedback

Getting your feedback inspires me the most so hit me up in the comments here or on the comments section on my YouTube Channel or on twitter @pointDeveloper

 

Consider Subscribing / Donating
Subscribe To Mailing List
Donate
If my site was helpful to you, then please consider donating via paypal:

Prantik Vaghela (pointdeveloper)

Hi my name is Prantik Vaghela. I have done my Bachelors and Masters in Computer Science and am a web developer and now a Tutor through my blog. :-)