forked from EddyVerbruggen/Calendar-PhoneGap-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Considering the changes introduced in EventKit for iOS 17, add the "requestFullAccessToEventWithCompletion:" method to trigger the alert to allow full access to the Calendar. This allows the plugin to keep a similar behaviour to the 16 version (and previous). Considering that the methods use the same access grant closure, this was moved into a local variable that can be called by all callers. The iOS 5 condition was removed as our current supported minimum version is higher than that one. Add the "NSCalendarsFullAccessUsageDescription" info.plist key added by Apple for iOS 17. It uses the same text set for "NSCalendarsUsageDescription", keeping the same experience as before. Remove the SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO macro as it's not used in the code. References: https://outsystemsrd.atlassian.net/browse/RMET-2726
- Loading branch information
1 parent
9a29b8b
commit e192174
Showing
2 changed files
with
28 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters