The question I'm asking have already been asked a number of times on this site (links to the previous threads are below my question).
When working with iOS AddressBook, and trying to get Exchange GAL address book, the type name returns Nil. The code that I use (and suggested in all previous threads) is:
CFStringRef sourceName = (CFStringRef)ABRecordCopyValue(source, kABSourceNameProperty);
This basically means that if there are more than one Exchange address book mapped on the device (and there is no limitation to do so...), then there is no way to know which one is the one you need.
The question is if someone has found any workaround for this issue?
Thanks in advance!
Links to previous threads:
First of all: We used an official Apple Support Request to ask if it is possible to distinguish between Exchange Servers and the simply answer was: It is not! :(
I opened a Bug Report about this issue.
If you are developing for a business customer it might be an option to have their IT pre-install the wanted exchange and prevent the user from adding additional exchange servers via policy.
来源:https://stackoverflow.com/questions/7163928/addressbook-differentiating-sources-of-type-kabsourcetypeexchangegal