You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Tobias Mücksch (JIRA)" <ji...@apache.org> on 2016/04/06 11:41:25 UTC

[jira] [Created] (CB-11028) Android version of the contacts plugin behaves differently for Contact Detail "type"

Tobias Mücksch created CB-11028:
-----------------------------------

             Summary: Android version of the contacts plugin behaves differently for Contact Detail "type"
                 Key: CB-11028
                 URL: https://issues.apache.org/jira/browse/CB-11028
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin Contacts
            Reporter: Tobias Mücksch


After inspecting the code for the android version of the plugin, I found out, that for some reason the coders decided to return { ..., type: "custom", ... } for contact details with custom labels. But the iOS Version returns the actual custom label as type.

Example:

*iOS:*

{code:javascript}
{
    name: [ ... ],
    phoneNumbers: [{
        id: 1337,
        type: "My super fancy label",
        value: "+41 45654 214654"
    }]
}
{code}

*Android:*
{code:javascript}
{
    name: [ ... ],
    phoneNumbers: [{
        id: 1337,
        type: "custom",     // WHAT THE HELL?
        value: "+41 45654 214654"
    }]
}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org