EKEventStore permission request

According to Apple's calendar and event programming guide:

In iOS 6 and later, we must request access to use the User Calendar database using the requestAccessToEntityType: completion: method after initializing the event store.

It is also reported that the user is only offered the first time the application requests access to an object type; any subsequent instances of EKEventStore use existing permissions. Your application is not blocked until the user decides to grant or deny permission.

My question is: is there a way for us to again prompt the user to request access to the entity type?

It seems to me that I should put a UIAlertView to ask the user to go to the settings and grant the appropriate permissions.

+6
source share
1 answer

As now, you will not be able to request the user again if the user said no for the first time. They will need to go to the settings to change their choice. So a warning is a way to do this.

+2
source

Source: https://habr.com/ru/post/926372/


All Articles