That should not be possible on iOS, as it would be a way to have access to user confidential data from an app.
Agreed, although there are other privacy-sensitive subsystems (Contacts, Photos, and so on) that have an API to access the underlying data, with appropriate privacy protection.
@microkid, If you’d like to see such an API added in the future, I encourage you to file an enhancement request describing your requirements.
Please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"