Dave
Dave

Reputation: 5

How to set config.xml for cordova 3.5 contacts plugin

I have added the cordova Contacts plugin to a project as follows: % cordova plugin add org.apache.cordova.contacts Then did a build like this: % cordova build ios

But the plugin is unusable - no code that refers to it gets run. The app just stops at that point. When I look in the cordova docs at https://github.com/apache/cordova-plugin-contacts/blob/master/doc/index.md there's nothing about setting config.xml. My curent config looks like this:

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.OurApp.OurApp" version="0.0.1"     xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>Our App</name>
    <description>
        Our descriptions.
    </description>
    <author email="[email protected]" href="http://cordova.io">
        Our Team
    </author>
    <content src="index.html" />
    <access origin="*" />
</widget>

I know that the build was supposed to update config.xml, but it didn't. What do I need to add to get ver 3.5 Contacts to work? And is there a list of all these config settings somewhere? TIA.

EDIT: I tried adding

<plugin name="Contacts" value="CDVContacts" />

within the widget tag - no dice.

Upvotes: 0

Views: 852

Answers (1)

Rupesh
Rupesh

Reputation: 444

I guess you are looking into config.xml of root folder. Please note now cordova maintaines two config files. One at root folder which have setting related to app. There is second config file at platform/ios/projectName/config.xml. this is the final config xml with all plugin related details. Please look into this config after build command. plugins must be there if they are installed. you can see all the installed plugins using command cordova plugin plugin-list

I hope It will give you right direction. If it won't help, Please post error message from console.

Upvotes: 2

Related Questions