Cordova – config.xml File

The config.xml file is the place where we can change the configuration of the app. When we created our app in the last tutorial, we set reverse domain and name. The values can be changed in the config.xml file. When we create the app, the default config file will also be created.

The following table explains configuration elements in config.xml.

config.xml Configuration Table

S.NoElement & Details
1widget The app reverse domain value that we specified when creating the app.
2name The name of the app that we specified when creating the app.
3description Description for the app.
4author Author of the app.
5content The app’s starting page. It is placed inside the www directory.
6plugin The plugins that are currently installed.
7access Used to control access to external domains. The default origin value is set to * which means that access is allowed to any domain. This value will not allow some specific URLs to be opened to protect information.
8allow-intent Allows specific URLs to ask the app to open. For example, <allow-intent href = “tel:*” /> will allow tel: links to open the dialer.
9platform The platforms for building the app.

Leave a Reply