cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Bau (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-7789) "navigator.contacts.find" will cause immediately shut down in wp8
Date Sun, 14 Jun 2015 08:05:01 GMT

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

Colin Bau updated CB-7789:
--------------------------
    Description: 
when I use these code

var options = new ContactFindOptions();
options.filter = "";
options.multiple = true;
var filter_emails = ["emails"]
navigator.contacts.find(filter_emails, refresh_contact_success_email, null, options);

function refresh_contact_success_email(contacts)
{
alert('success')
}

in android and ios are work perfect (it will trigger "alert")
but in wp8,it will immediately shut down

PS
if let the filter have a value such like options.filter = "abc";
it will normal again

  was:
when I use these code

var options = new ContactFindOptions();
options.filter = "";
options.multiple = true;
var filter_emails = ["emails"]
navigator.contacts.find(filter_emails, refresh_contact_success_email, null, options);

function refresh_contact_success_email(contacts)
{
alert('success')
}

in android and ios are work perfect (it will trigger "alert")
but in wp8,it will immediately shut down


> "navigator.contacts.find" will cause immediately shut down in wp8
> -----------------------------------------------------------------
>
>                 Key: CB-7789
>                 URL: https://issues.apache.org/jira/browse/CB-7789
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Contacts
>    Affects Versions: 3.7.0, 3.6.3
>         Environment: phonegap 3.6.3 with all latest plugin
> contact plugin 1.0.0 version
> ios 8.02
> winphone 8.1
> Android 4.42
> all real machine
>            Reporter: Colin Bau
>              Labels: contacts
>   Original Estimate: 12h
>  Remaining Estimate: 12h
>
> when I use these code
> var options = new ContactFindOptions();
> options.filter = "";
> options.multiple = true;
> var filter_emails = ["emails"]
> navigator.contacts.find(filter_emails, refresh_contact_success_email, null, options);
> function refresh_contact_success_email(contacts)
> {
> alert('success')
> }
> in android and ios are work perfect (it will trigger "alert")
> but in wp8,it will immediately shut down
> PS
> if let the filter have a value such like options.filter = "abc";
> it will normal again



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


Mime
View raw message