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

Meshkov Alex updated CB-8172:
-----------------------------
    Description: 
Hi! I have the following code:
{code:javascript}
var options = new ContactFindOptions();
options.desiredFields = [navigator.contacts.fieldType.id, 
navigator.contacts.fieldType.phoneNumbers];
var fields = [
    navigator.contacts.fieldType.phoneNumbers
];
options.multiple = true;

navigator.contacts.find(fields, function (contacts) {
    alert('ok');
}, function (error) {
    alert(error);
}, options);
{code}

Neither success nor error callbacks are executed. 
This happens only with 0.2.16-dev version of the plugin. The 0.2.15 version is 
ok for me. I tested it on Android platform.

  was:
Hi! I have the following code:
{code:javascript}
var options = new ContactFindOptions();
options.desiredFields = [navigator.contacts.fieldType.id, 
navigator.contacts.fieldType.phoneNumbers];
var fields = [
    navigator.contacts.fieldType.phoneNumbers
];
options.multiple = true;

navigator.contacts.find(fields, function (contacts) {
    alert('ok');
}, function (error) {
    alert(error);
}, options);
{code}

Neither success nor error callbacks are executed. 
This happens only with 0.2.16-dev version of the plugin. The 0.2.15 version is 
ok for me.


> 0.2.16-dev: navigator.contacts.find doesn't execute neither success nor error 
> callback.
> ---------------------------------------------------------------------------------------
>
>                 Key: CB-8172
>                 URL: https://issues.apache.org/jira/browse/CB-8172
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin Contacts
>    Affects Versions: 4.1.3
>            Reporter: Meshkov Alex
>
> Hi! I have the following code:
> {code:javascript}
> var options = new ContactFindOptions();
> options.desiredFields = [navigator.contacts.fieldType.id, 
> navigator.contacts.fieldType.phoneNumbers];
> var fields = [
>     navigator.contacts.fieldType.phoneNumbers
> ];
> options.multiple = true;
> navigator.contacts.find(fields, function (contacts) {
>     alert('ok');
> }, function (error) {
>     alert(error);
> }, options);
> {code}
> Neither success nor error callbacks are executed. 
> This happens only with 0.2.16-dev version of the plugin. The 0.2.15 version 
> is ok for me. I tested it on Android platform.



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