[ 
https://issues.apache.org/jira/browse/CB-10985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15228016#comment-15228016
 ] 

ASF GitHub Bot commented on CB-10985:
-------------------------------------

Github user tobiasmuecksch commented on the pull request:

    
https://github.com/apache/cordova-plugin-contacts/pull/116#issuecomment-206258396
  
    Well that might fix the -1 issue. But the android version of this plugin 
behaves very differently from the ios Version.
    
    The iOS Version returns the custom label (if there is one set) for the 
type. Android simply returns "Custom".
    
    I don't think that's intended.


> 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
>          Components: Plugin Contacts
>            Reporter: Tobias Mücksch
>            Assignee: Sergey Shakhnazarov
>              Labels: android, reproduced, triaged
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to