You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Justin Noel (JIRA)" <ji...@apache.org> on 2014/09/22 21:03:33 UTC

[jira] [Updated] (CB-7605) navigator.contacts.pickContact does not return on cancel

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

Justin Noel updated CB-7605:
----------------------------
    Description: 
Steps to reproduce : 

Trigger contacts picker.  Tap the "Cancel" button.  App receives no callback for a success or failure.

NOTE: When opening picker, get this exception: 

Exception - Name: NSRangeException Reason: *** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array

After opening the picker the first time and choosing Cancel, the picker will no longer open.  Gives this exception:

Warning: Attempt to present <CDVContactsPicker: 0x17ecd9e0> on <MainViewController: 0x17e1dcf0> while a presentation is in progress!

Sample Code:

{code:javascript}
navigator.contacts.pickContact(
  function(contact){
    console.log("In service. selected contact=");
    console.log(contact);

    selectedContact = formatContact(contact);

    deferred.resolve( selectedContact );
  },function(err){
    console.log("Error");
    console.log(error);
    deferred.reject();
  }
);
{code}

  was:
Steps to reproduce : 

Trigger contacts picker.  Tap the "Cancel" button.  App receives no callback for a success or failure.

NOTE: When opening picker, get this exception: 

Exception - Name: NSRangeException Reason: *** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array

After opening the picker the first time and choosing Cancel, the picker will no longer open.  Gives this exception:

Warning: Attempt to present <CDVContactsPicker: 0x17ecd9e0> on <MainViewController: 0x17e1dcf0> while a presentation is in progress!


> navigator.contacts.pickContact does not return on cancel
> --------------------------------------------------------
>
>                 Key: CB-7605
>                 URL: https://issues.apache.org/jira/browse/CB-7605
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Contacts
>         Environment: Plugin version : 0.2.13
> Xcode : Version 6.0.1 (6A317)
> Cordova : 3.5.0-0.2.7
> iOS 7.1.2
>            Reporter: Justin Noel
>
> Steps to reproduce : 
> Trigger contacts picker.  Tap the "Cancel" button.  App receives no callback for a success or failure.
> NOTE: When opening picker, get this exception: 
> Exception - Name: NSRangeException Reason: *** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array
> After opening the picker the first time and choosing Cancel, the picker will no longer open.  Gives this exception:
> Warning: Attempt to present <CDVContactsPicker: 0x17ecd9e0> on <MainViewController: 0x17e1dcf0> while a presentation is in progress!
> Sample Code:
> {code:javascript}
> navigator.contacts.pickContact(
>   function(contact){
>     console.log("In service. selected contact=");
>     console.log(contact);
>     selectedContact = formatContact(contact);
>     deferred.resolve( selectedContact );
>   },function(err){
>     console.log("Error");
>     console.log(error);
>     deferred.reject();
>   }
> );
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)