cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Noel (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-7605) navigator.contacts.pickContact does not return on cancel
Date Tue, 14 Oct 2014 12:29:33 GMT

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

Justin Noel commented on CB-7605:
---------------------------------

Yes it is.  I had a mistake in my code causing it to not call.

> 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
>            Assignee: Shazron Abdullah
>             Fix For: 3.7.0
>
>
> Choosing the "Cancel" option on the contact picker fails to process either contactSuccess
or contactError callbacks.
> 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: 
> {code}Exception - Name: NSRangeException Reason: *** -[__NSArrayM objectAtIndex:]: index
0 beyond bounds for empty array{code}
> After opening the picker the first time and choosing Cancel, the picker will no longer
open.  
> Sometimes, when opening the picker the first time or another time after trying repeatedly,
this exception shows:
> {code}Warning: Attempt to present <CDVContactsPicker: 0x17ecd9e0> on <MainViewController:
0x17e1dcf0> while a presentation is in progress!{code}
> 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(err);
>     deferred.reject();
>   }
> );
> {code}



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