[ https://issues.apache.org/jira/browse/CB-902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13469339#comment-13469339 ]
Becky Gibson commented on CB-902: --------------------------------- On quick inspection of your code I do see a few things that might be an issue. First, iOS does not support displayName as specified in the docs: "displayName: This property is not supported by iOS and will be returned as null unless there is no ContactName". Can you try setting one of the other name fields just to see if that makes a difference? I do my best to handle displayName in the code and I'll try and double check to make sure that is not the reason for the crash. Also, you should not be setting the contact.id - that field gets set by the mobile operating system when the contact is saved. Also, what version of iOS are you using? I assume at least 4.1 (and 4.3 if you are using xcode 4.5). I think 4.1 is the minimum required to use blocks (which is where you are seeing the crash). > iOS 6 - deal with new Privacy functionality in Contacts (ABAddressBook:: > ABAddressBookCreateWithOptions) > -------------------------------------------------------------------------------------------------------- > > Key: CB-902 > URL: https://issues.apache.org/jira/browse/CB-902 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Affects Versions: 1.8.0 > Environment: iOS 6 DP1 > Reporter: Shazron Abdullah > Assignee: Braden Shepherdson > Priority: Critical > Labels: iOS6 > Fix For: 2.2.0 > > > Currently crashes if the user does not have AddressBook permission on iOS 6. > The user will get a popup dialog similar to the Geolocation permissions > dialog. When creating an address book, we should handle the condition where > the app does not have permission, and the address book returned is NULL. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira