Renaming Your Cordova Application

22 Aug

So you started development on your Cordova application with the default name and id (io.cordova.hellocordova) and now you want to change it?

First edit your config.xml. If you are in a recent version of Cordova or PhoneGap (Cordova 3.5.0 for example) this will be located in the root of the cordova project. For older versions it will be in the \www directory.

The top of your config.xml will look like this:

You’ll want to change the Name and ID attributes.

Unfortunately the individual platform files will have a variety of references that need to be fixed.  The easiest way to do this is to remove and regenerate the platform at the command prompt. Of course if you have any customizations to the platform you have done manually, you’ll want to back those up first so you can restore them afterwards.

Or Android, or iOS, or whatever platform is applicable to your scenario.

2 Replies to “Renaming Your Cordova Application

Leave a Reply

Your email address will not be published. Required fields are marked *