Questions regarding plugins in config.xml

2 posts, 0 answers
  1. Idan
    Idan avatar
    76 posts
    Member since:
    Oct 2012

    Posted 19 Mar 2014 Link to this post


    1) Can you please tell me what is the <plugins> node with the plugin list means in the config.xml for Android. How it defers from the enable/disable switches for the plugins when I click properties in the Core plugins section.

    2) Second question, if I use a custom plugin, do I need to put it in the config.xml?

  2. Iva Koevska
    Iva Koevska avatar
    286 posts

    Posted 20 Mar 2014 Link to this post

    Hi Idan,

    Thank you for your questions.

    You can read more about the config.xml file, which is part of Apache Cordova, here.

    In the context of AppBuilder, here is what you need to know.
    • At build time, AppBuilder pulls information from your manually modified config.xml, from config.xml-related project properties such as the enabled plugins, and from any custom plugin plugin.xml files properly nested in your Plugins folder.
    • This means that you do not need to manually modify config.xml to contain references to the core or the integrated plugins.
    • If the plugin.xml contains the proper <feature> declarations for the custom plugin in the proper <platform> element, you do not need to manually include them in your config.xml. You might want to check the plugin.xml reference here.
    • AppBuilder resolves plugin dependencies in a smart manner. This means that even if you have not enabled a core or integrated plugin, required by another plugin you are currently using (be it core, integrated, or custom), AppBuilder will automatically enable it and make the necessary references at build time.

    Iva Koevska

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET. Seats are limited.

Back to Top