Using the examples from both kitchen sink and from the Ti docs, creating a person works in the sim but not on a device. This error is thrown: Failed to add person: The operation couldn't be completed. ABAddressBookErrorDomain error 1 - this is a show stopper for my app. any advice?
2 Answers
I'm having the same problem. iOS 6 requires an app to request permission before accessing contacts as described here, however I can't see any way to do this in Appcelerator.
Actually scratch that, it is in the API:
You can check authorisation status using Ti.Contacts.contactsAuthorization and request authorisation if needed using Ti.Contacts.requestAuthorization().
Your Answer
Think you can help? Login to answer this question!