Why does EKEventEditViewController (sometimes) ask for permission to access contacts?

I'm not seeing this all of the time, just sometimes...


I present an EKEventEditViewController in my app. Of course, the user has to give permission for me to access their calendar. When the Edit VC is presented, if the user taps the "Calendar" row in the Table View, they are navigated to a screen to pick their calendar... and the "app would like to access your Contacts" alert is displayed. Once they choose to allow access, nothing appears to happen. The experience appears to be identical if they choose to not allow access.


This doesn't always happen. It appears to only be the case when I am on a device with an iCloud account that has Family Sharing turned on. If I'm not logged into iCloud, I don't see the permission alert. If I'm logged into an iCloud account that doesn't have Family Sharing turned on, I don't see the permission alert.


Showing the alert is weird, because I don't care about accessing my user's contacts. They might think that I'm up to something if the OS prompts them on that screen. And, in iOS 10, I have to now provide a Purpose String or the app crashes.


Is there something I'm missing here?

Accepted Reply

Hi,


I had a simmilar issue some time ago: https://forums.developer.apple.com/thread/7473


Dirk

Replies

Hi,


I had a simmilar issue some time ago: https://forums.developer.apple.com/thread/7473


Dirk