[
https://issues.apache.org/jira/browse/CB-7866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shazron Abdullah updated CB-7866:
---------------------------------
Component/s: (was: iOS)
Plugin Contacts
Environment: iOS
> [Contacts] pickContact call throws NSRangeException, pickContact does not
> support "desiredFields" property
> ----------------------------------------------------------------------------------------------------------
>
> Key: CB-7866
> URL: https://issues.apache.org/jira/browse/CB-7866
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Contacts
> Affects Versions: 3.5.0
> Environment: iOS
> Reporter: Aleksey Dobrushin
>
> pickContact function on iOS throws following exception
> {code}
> Exception - Name: NSRangeException Reason: *** -[__NSArrayM objectAtIndex:]:
> index 0 beyond bounds for empty array
> {code}
> and the exception thrown here:
> {code}
> - (void)pickContact:(CDVInvokedUrlCommand *)command
> {
> // mimic chooseContact method call with required for us parameters
> NSArray* desiredFields = [command.arguments objectAtIndex:0
> withDefault:[NSArray array]];
> ....
> {code}
> Javascript method pick contact method has only success and error handlers as
> arguments, and does not have desiredFields as argument.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]