in Technology by
Explain about the config.xml of PhoneGap ?

1 Answer

0 votes
by

First cd into the project that you just created. Your project will contain,

  • config.xml : It contains configurations related to the project. It follows the W3C widget specification and allows you to specify metadata about your applications easily.
  • config.xml allows you to specify Cordova plugins to be used and platform specific configurations as well.

<widget>

config.xml needs to have certain essential properties, let's see what are those.


The <widget> element is the root of config.xml document. It lets PhoneGap Build know that the project is following the W3C specification.

It has the following attributes:

  • id: is the unique identifier for your application. It is recommended that it should be a reverse-domain name style (e.g. com.yourcompany.yourapp) to support all platforms.
  • version: This specifies the application version.
  • versionCode: (optional) This is specific to Android.

config.xml has the following children properties under <widget>.


  • <name>: Specifies the name of the application.
  • <description>: String description of your application.
  • <author>: Author's name.
  • <platform>: You can have zero or more of these tags in config.xml. You can set the name attribute to androidios or windows. If you specify none, all platforms will be built.

Related questions

0 votes
    Explain about the PhoneGap Project Structure?...
asked Jan 15, 2021 in Technology by JackTerrance
0 votes
    I have built an Android App using Phonegap/HTML5/JQuery mobile. I had the option of parsing XML data ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 21, 2022 in Education by JackTerrance
0 votes
    You are working with this XML code snippet from the XML document cars.xml. You need to return the information about the cars ... D.doc("cars.xml")/cars/car[integer(year) > 2000]...
asked Mar 10, 2023 in Technology by JackTerrance
0 votes
    Explain how XML file is called in d3.js?...
asked Nov 14, 2020 in Technology by JackTerrance
0 votes
    What is Push Notifications in PhoneGap?...
asked Jan 15, 2021 in Technology by JackTerrance
0 votes
    What is deviceready event in Phonegap?...
asked Jan 15, 2021 in Technology by JackTerrance
0 votes
    What are the Common events of index.js in Phonegap?...
asked Jan 15, 2021 in Technology by JackTerrance
0 votes
    How to Creating a PhoneGAP Project?...
asked Jan 15, 2021 in Technology by JackTerrance
0 votes
0 votes
    What is PhoneGap?...
asked Jan 15, 2021 in Technology by JackTerrance
0 votes
    Which engine powers PhoneGap? (1)Cordova (2)JavaScript (3)ART (4)Nodejs...
asked Nov 30, 2020 in Technology by JackTerrance
0 votes
    Which flag of PhoneGap CLI is used to copy an existing project while using create? (1)None of the options (2)--copy (3)--cp (4)--src (5)--copy-from...
asked Nov 30, 2020 in Technology by JackTerrance
0 votes
    From the App Store Connect I noticed a message telling me that from March 27, 2019 my applications will ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 2, 2022 in Education by JackTerrance
0 votes
    I would like to ask if I require a Mac for the entire process of the iPhone app development or ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    I have some app ideas that I want to release for free (with ads). I am a web developer that ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 23, 2022 in Education by JackTerrance
...