ceaseless-prayer / CeaselessIOS

This is the iOS application code for Ceaseless.
http://www.ceaselessprayer.com
MIT License
5 stars 2 forks source link

Address books linked to Exchange have lots of entries we want to ignore #83

Closed chrislim closed 9 years ago

chrislim commented 9 years ago

What should we do in these cases? The entries oftentimes have the composite name stuffed into the first name field. There are also lots of conference room contacts. How do we intelligently ignore these? And/or how do we let users efficiently handle these cases? img_2216

chrislim commented 9 years ago

Using: https://developer.apple.com/library/ios/documentation/AddressBook/Reference/ABPersonRef_iPhoneOS/#//apple_ref/c/func/ABAddressBookCopyArrayOfAllPeopleInSource

We can only fetch local contacts and thereby ignore ones from exchange.

https://developer.apple.com/library/prerelease/ios/documentation/AddressBook/Reference/ABSourceRef_iPhoneOS/index.html#//apple_ref/doc/constant_group/Source_Types

This didn't cause any reduction of contacts on my iPad, so other app seem to sync contacts to the local book. Exchange is the main one that seems to have its own special source in addition to LDAP and other organizational systems.

chrislim commented 9 years ago

We could also make including exchange contacts an option if we think some users may want that...

chrislim commented 9 years ago

6591753dfe6bb9558b0bf69ca63c7323e4a19fe3 We default to only the local contacts with this commit.