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/03/29 21:01:25 UTC

[jira] [Updated] (CB-10985) Android sets type to -1 for ims

     [ https://issues.apache.org/jira/browse/CB-10985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tobias Mücksch updated CB-10985:
--------------------------------
    Description: 
I've created a contact with some ims.
{code:javascript}
{
    ims: [{
        type: "Skype",
        value: "mr_important"
    }]
}
{code}

When I retrieve the contact from the system it looks like this:

{code:javascript}
{
    ims: [{
        id: "2966",
        pref: false,
        type: -1,
        value: "mr_important"
    }]
}
{code}

Have a look at the type... Why...?
The phonebook shows the contact as expected with the correct type.

Problem is the same either if the contact is created in the system or with the cordova plugin.

*Versions:*
Android: 6.0
Cordova: 6.0.0
Platform: 5.1.1
Cordova-Plugin-Contacts: 2.0.1

  was:
I've created a contact with a custom type for ims.
{code:javascript}
{
    ims: [{
        type: "diaspora",
        value: "mr_important"
    }]
}
{code}

When I retrieve the contact from the system it looks like this:

{code:javascript}
{
    ims: [{
        id: "2966",
        pref: false,
        type: -1,
        value: "mr_important"
    }]
}
{code}

Have a look at the type... Why...?
The phonebook shows the contact as expected with the correct type.

*Versions:*
Android: 6.0
Cordova: 6.0.0
Platform: 5.1.1
Cordova-Plugin-Contacts: 2.0.1


> Android sets type to -1 for ims
> -------------------------------
>
>                 Key: CB-10985
>                 URL: https://issues.apache.org/jira/browse/CB-10985
>             Project: Apache Cordova
>          Issue Type: Bug
>            Reporter: Tobias Mücksch
>
> I've created a contact with some ims.
> {code:javascript}
> {
>     ims: [{
>         type: "Skype",
>         value: "mr_important"
>     }]
> }
> {code}
> When I retrieve the contact from the system it looks like this:
> {code:javascript}
> {
>     ims: [{
>         id: "2966",
>         pref: false,
>         type: -1,
>         value: "mr_important"
>     }]
> }
> {code}
> Have a look at the type... Why...?
> The phonebook shows the contact as expected with the correct type.
> Problem is the same either if the contact is created in the system or with the cordova plugin.
> *Versions:*
> Android: 6.0
> Cordova: 6.0.0
> Platform: 5.1.1
> Cordova-Plugin-Contacts: 2.0.1



--
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