diff --git a/permission_handler_apple/ios/Classes/strategies/EventPermissionStrategy.m b/permission_handler_apple/ios/Classes/strategies/EventPermissionStrategy.m index b41a725ff..0e39cf426 100644 --- a/permission_handler_apple/ios/Classes/strategies/EventPermissionStrategy.m +++ b/permission_handler_apple/ios/Classes/strategies/EventPermissionStrategy.m @@ -133,13 +133,11 @@ + (PermissionStatus)permissionStatus:(PermissionGroup)permission { } + (EKEntityType)getEntityType:(PermissionGroup)permission { - if (permission == PermissionGroupCalendar || permission == PermissionGroupCalendarFullAccess || permission == PermissionGroupCalendarWriteOnly) { - return EKEntityTypeEvent; - } else if (permission == PermissionGroupReminders) { + if (permission == PermissionGroupReminders) { return EKEntityTypeReminder; } - return nil; + return EKEntityTypeEvent; } @end