[
https://issues.apache.org/jira/browse/CB-10985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15227048#comment-15227048
]
Sergey Shakhnazarov commented on CB-10985:
------------------------------------------
[~tmuecksch], could you please test if it works for your case?
{{cordova plugin rm contacts && cordova plugin add
https://github.com/MSOpenTech/cordova-plugin-contacts#481ea0d2230152850c338f30f5f9bdd5f9beeaf8}}
> 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]